1 Star 0 Fork 0

ichub / go-factroy2024

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
PageResult.go 744 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2024-01-30 12:56 . add
package dto
import "encoding/json"
type PageParam struct {
Current int32 `json:"current"`
PageSize int32 `json:"page_size"`
Total int32 `json:"total"`
Count int `json:"count"`
}
func (pageParam *PageParam) String() string {
s, _ := json.Marshal(pageParam)
return string(s)
}
func (pageParam *PageParam) ToString() string {
s, _ := json.MarshalIndent(pageParam, "", " ")
return string(s)
}
type PageResult struct {
JsonResult
Page PageParam `json:"data"`
Data []interface{} `json:"data"`
}
func (pageResult *PageResult) String() string {
s, _ := json.Marshal(pageResult)
return string(s)
}
func (pageResult *PageResult) ToString() string {
s, _ := json.MarshalIndent(pageResult, "", " ")
return string(s)
}
Go
1
https://gitee.com/ichub/go-factroy2024.git
git@gitee.com:ichub/go-factroy2024.git
ichub
go-factroy2024
go-factroy2024
v1.2.0

搜索帮助