Skip to content

Commit 6dbe640

Browse files
committed
Page请求不在reponse中规范
1 parent 558aea1 commit 6dbe640

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

http/response/data.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package response
22

3-
import "github.com/infraboard/mcube/http/request"
4-
53
// Data to be used by controllers.
64
type Data struct {
75
Code *int `json:"code"` // 自定义返回码 0:表示正常
@@ -12,13 +10,6 @@ type Data struct {
1210
Data interface{} `json:"data,omitempty"` // 返回的具体数据
1311
}
1412

15-
// PageData 数据分页数据
16-
type PageData struct {
17-
*request.PageRequest
18-
TotalCount uint `json:"total"` // 总共多少条
19-
List interface{} `json:"list"` // 页面数据
20-
}
21-
2213
// NewData new实例
2314
func NewData(data interface{}) *Data {
2415
code := -1

0 commit comments

Comments
 (0)