clear:formatting code

This commit is contained in:
zhangwenjian committed 2020-07-23 12:03:17 +08:00
1 parent 426cec1b62
commit 8c554d7ee7
52 files changed
+486 -502

No files matched your search

+4 -9
View File
@@ -10,10 +10,10 @@ type Response struct {
}
type Page struct {
List interface{} `json:"list"`
Count int `json:"count"`
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
List interface{} `json:"list"`
Count int `json:"count"`
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
}
type PageResponse struct {
@@ -25,7 +25,6 @@ type PageResponse struct {
Msg string `json:"msg"`
}
func (res *Response) ReturnOK() *Response {
res.Code = 200
return res
@@ -36,11 +35,7 @@ func (res *Response) ReturnError(code int) *Response {
return res
}
func (res *PageResponse) ReturnOK() *PageResponse {
res.Code = 200
return res
}