完成基础model部分

This commit is contained in:
2022-05-25 17:30:46 +08:00
parent ddec628641
commit 9bb43f4484
18 changed files with 498 additions and 0 deletions

10
core/response_page.go Normal file
View File

@@ -0,0 +1,10 @@
package core
// PageData 分页数据通用结构体
type PageData struct {
Current int `json:"current"` // 当前页码
Size int `json:"size"` // 每页数量
Total int64 `json:"total"` // 总数
TotalPage int `json:"total_page"` // 总页数
Records interface{} `json:"records"` // 返回数据
}