提交 3e13811a 编写于 作者: C Carman Zhang

changed nic related rules

上级 c503efaa
......@@ -54,6 +54,7 @@ const (
type PagedFormatedLevelMetric struct {
CurrentPage int `json:"page"`
TotalPage int `json:"total_page"`
TotalItem int `json:"total_item"`
Message string `json:"msg"`
Metric FormatedLevelMetric `json:"metrics"`
}
......
......@@ -236,6 +236,7 @@ func Page(pageNum string, limitNum string, fmtLevelMetric *FormatedLevelMetric,
return &PagedFormatedLevelMetric{
Message: "paged",
TotalPage: allPage,
TotalItem: maxLength,
CurrentPage: page,
Metric: *fmtLevelMetric,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册