- 增加资产列表使用IP端口查询的功能

This commit is contained in:
dushixiang
2022-11-06 18:04:11 +08:00
parent a52ad2e356
commit fd8b36dcc2
3 changed files with 22 additions and 3 deletions

View File

@ -118,12 +118,13 @@ func (assetApi AssetApi) AssetPagingEndpoint(c echo.Context) error {
protocol := c.QueryParam("protocol")
tags := c.QueryParam("tags")
ip := c.QueryParam("ip")
port := c.QueryParam("port")
active := c.QueryParam("active")
order := c.QueryParam("order")
field := c.QueryParam("field")
items, total, err := repository.AssetRepository.Find(context.Background(), pageIndex, pageSize, name, protocol, tags, ip, active, order, field)
items, total, err := repository.AssetRepository.Find(context.Background(), pageIndex, pageSize, name, protocol, tags, ip, port, active, order, field)
if err != nil {
return err
}