fix
This commit is contained in:
@@ -17,6 +17,9 @@ service shopping-cart-confirmation {
|
||||
//获取用户购物车数量
|
||||
@handler CartNumberHandler
|
||||
get /cart/num ( ) returns (response);
|
||||
//获取用户购物车列表
|
||||
@handler CartListHandler
|
||||
get /cart/list (CartListReq) returns (response);
|
||||
}
|
||||
|
||||
//添加入购物车
|
||||
@@ -32,4 +35,38 @@ type CartDeleteReq {
|
||||
//获取用户购物车数量
|
||||
type CartNumberRsp {
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
//获取用户购物车列表
|
||||
type CartListReq {
|
||||
Size uint32 `form:"size"`
|
||||
}
|
||||
type CartListRsp {
|
||||
Id int64 `json:"id"`
|
||||
Cover string `json:"cover"`
|
||||
Name string `json:"name"`
|
||||
Capacity string `json:"capacity"`
|
||||
ETA string `json:"ETA"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
ProductSn string `json:"product_sn"`
|
||||
DesignSn string `json:"designSn"`
|
||||
Option CartOption `json:"option"`
|
||||
IsCheck int64 `json:"is_check"`
|
||||
TsTime string `json:"ts_time"`
|
||||
PcsList []PcsItem `json:"pcs_list"`
|
||||
Size CartSizeItem `json:"size"`
|
||||
}
|
||||
type CartOption {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
type PcsItem {
|
||||
Num int64 `json:"num"`
|
||||
TotalNum int64 `json:"total_num"`
|
||||
Title string `json:"title"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
type CartSizeItem {
|
||||
Cm string `json:"cm"`
|
||||
Inch string `json:"inch"`
|
||||
}
|
||||
Reference in New Issue
Block a user