Merge branch 'feature/mhw-v1.01' of gitee.com:fusenpack/fusenapi into feature/mhw-v1.01
This commit is contained in:
@@ -15,9 +15,6 @@ service shopping-cart {
|
||||
//删除购物车
|
||||
@handler DeleteCartHandler
|
||||
post /api/shopping-cart/delete(DeleteCartReq) returns (response);
|
||||
//修改购物车购买数量
|
||||
@handler ModifyCartPurchaseQuantityHandler
|
||||
post /api/shopping-cart/modify(ModifyCartPurchaseQuantityReq) returns (response);
|
||||
//获取购物车列表
|
||||
@handler GetCartsHandler
|
||||
get /api/shopping-cart/get_carts(GetCartsReq) returns (response);
|
||||
@@ -49,11 +46,7 @@ type DiyInfo {
|
||||
type DeleteCartReq {
|
||||
Id int64 `json:"id"` //购物车id
|
||||
}
|
||||
//修改购物车购买数量
|
||||
type ModifyCartPurchaseQuantityReq {
|
||||
Id int64 `json:"id"` //购物车id
|
||||
PurchaseQuantity int64 `json:"purchase_quantity"` //数量
|
||||
}
|
||||
|
||||
//获取购物车列表
|
||||
type GetCartsReq {
|
||||
CurrentPage int `form:"current_page"` //当前页
|
||||
@@ -109,6 +102,7 @@ type CalculateCartPriceReq {
|
||||
type CalculateItem {
|
||||
CartId int64 `json:"cart_id"` //购物车id
|
||||
PurchaseQuantity int64 `json:"purchase_quantity"` //数量
|
||||
IsSelected bool `json:"is_selected"` //是否是选中的,选中的会统计到总价中
|
||||
}
|
||||
type CalculateCartPriceRsp {
|
||||
SubTotalPrice string `json:"sub_total_price"`
|
||||
|
||||
Reference in New Issue
Block a user