首页图表可查看用户组下的在线数、网络吞吐量

This commit is contained in:
lanrenwo
2022-09-18 16:17:11 +08:00
parent 5586b27319
commit 48bebadc6b
7 changed files with 179 additions and 14 deletions

View File

@@ -47,6 +47,16 @@ func GroupNames(w http.ResponseWriter, r *http.Request) {
RespSucess(w, data)
}
func GroupNamesIds(w http.ResponseWriter, r *http.Request) {
var names = dbdata.GetGroupNamesIds()
data := map[string]interface{}{
"count": len(names),
"page_size": 0,
"datas": names,
}
RespSucess(w, data)
}
func GroupDetail(w http.ResponseWriter, r *http.Request) {
_ = r.ParseForm()
idS := r.FormValue("id")