| | |
| | | "github.com/gin-gonic/gin" |
| | | ) |
| | | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 标签列表 |
| | | // @Description 返回底库标签 |
| | | // @Accept json |
| | |
| | | tokenRes["title"] = dt.TableName |
| | | tokenRes["value"] = dt.Id |
| | | tokenRes["status"] = dt.IsDelete |
| | | tokenRes["bwType"] = dt.BwType //0:白名单,1:黑名单 |
| | | tokenRes["analyServerId"] = dt.AnalyServerId //为空是同步库,不为空是本地库 |
| | | if dt.IsDelete == 1 { |
| | | if GetTotalFromDb(dt.Id) == false { |
| | | continue |
| | |
| | | return false |
| | | } |
| | | url := "http://" + localConf.AlarmIp + ":" + strconv.Itoa(int(localConf.AlarmPort)) + |
| | | "/" + config.EsInfo.EsIndex.VideoPersons.IndexName + "/_search" |
| | | "/" + config.EsInfo.EsIndex.AiOcean.IndexName + "/_search" |
| | | prama := "{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"baseInfo.tableId\":\"" + id + "\"}}]}},\"size\":0}" |
| | | buf, err := esutil.EsReq("POST", url, []byte(prama)) |
| | | if err != nil { |