|
|
|
@ -13,9 +13,10 @@ type ESDataContent struct {
|
|
|
|
|
OrgName string `json:"org_name"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetESDocCount() (bool, []map[string]interface{}) {
|
|
|
|
|
func GetESDocCount() (bool, string, int, []map[string]interface{}) {
|
|
|
|
|
var datas []map[string]interface{}
|
|
|
|
|
var data map[string]interface{}
|
|
|
|
|
var count int
|
|
|
|
|
|
|
|
|
|
linksystems, c, _ := AccessSystemDao.ListApp("", 1, 1000)
|
|
|
|
|
if c > 0 {
|
|
|
|
@ -47,11 +48,13 @@ func GetESDocCount() (bool, []map[string]interface{}) {
|
|
|
|
|
//data["system_id"] = v["app_id"]
|
|
|
|
|
//data["num"] = num
|
|
|
|
|
//datas = append(datas, data)
|
|
|
|
|
//fmt.Println("len(datas):", len(datas))
|
|
|
|
|
}
|
|
|
|
|
count = len(datas)
|
|
|
|
|
} else {
|
|
|
|
|
return false, datas
|
|
|
|
|
return false, "数据获取失败, 找不到系统", count, datas
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true, datas
|
|
|
|
|
return true, "数据获取成功", count, datas
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|