You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
943 B
49 lines
943 B
package http |
|
|
|
import ( |
|
"go-common/app/admin/ep/melloi/model" |
|
bm "go-common/library/net/http/blademaster" |
|
"go-common/library/net/http/blademaster/binding" |
|
) |
|
|
|
func treesQuery(c *bm.Context) { |
|
c.JSON(srv.TreesQuery()) |
|
} |
|
|
|
func treeNumQuery(c *bm.Context) { |
|
c.JSON(srv.TreeNumQuery()) |
|
} |
|
|
|
func topHttpQuery(c *bm.Context) { |
|
c.JSON(srv.TopHttpQuery()) |
|
} |
|
|
|
func topGrpcQuery(c *bm.Context) { |
|
c.JSON(srv.TopGrpcQuery()) |
|
} |
|
|
|
func topSceneQuery(c *bm.Context) { |
|
c.JSON(srv.TopSceneQuery()) |
|
} |
|
|
|
func topDeptQuery(c *bm.Context) { |
|
c.JSON(srv.TopDeptQuery()) |
|
} |
|
|
|
func buildLineQuery(c *bm.Context) { |
|
rank := model.Rank{} |
|
summary := model.ReportSummary{} |
|
if err := c.BindWith(&rank, binding.Form); err != nil { |
|
c.JSON(nil, err) |
|
return |
|
} |
|
if err := c.BindWith(&summary, binding.Form); err != nil { |
|
c.JSON(nil, err) |
|
return |
|
} |
|
c.JSON(srv.BuildLineQuery(&rank, &summary)) |
|
} |
|
|
|
func stateLineQuery(c *bm.Context) { |
|
c.JSON(srv.StateLineQuery()) |
|
}
|
|
|