This commit is contained in:
laodaming
2023-09-14 18:33:29 +08:00
parent 0bb11f975d
commit 9c178b2add
7 changed files with 236 additions and 27 deletions

View File

@@ -36,8 +36,8 @@ type File {
// 统一分页
type Meta struct {
TotalCount int64 `json:"totalCount"`
PageCount int64 `json:"pageCount"`
CurrentPage int `json:"currentPage"`
PerPage int `json:"perPage"`
TotalCount int64 `json:"total_count"`
PageCount int64 `json:"page_count"`
CurrentPage int `json:"current_page"`
PerPage int `json:"per_page"`
}

View File

@@ -53,7 +53,7 @@ type ModifyCartPurchaseQuantityReq {
}
//获取购物车列表
type GetCartsReq {
Page int `form:"page"` //当前页
CurrentPage int `form:"current_page"` //当前页
}
type GetCartsRsp {
Meta Meta `json:"meta"` //分页信息