fix
This commit is contained in:
@@ -20,6 +20,9 @@ service shopping-cart-confirmation {
|
||||
//获取用户购物车列表
|
||||
@handler CartListHandler
|
||||
get /cart/list (CartListReq) returns (response);
|
||||
//获取用户购物车订单详情
|
||||
@handler CartOrderDetailHandler
|
||||
get /cart/order-detail (CartOrderDetailReq) returns (response);
|
||||
}
|
||||
|
||||
//添加入购物车
|
||||
@@ -69,4 +72,41 @@ type PcsItem {
|
||||
type CartSizeItem {
|
||||
Cm string `json:"cm"`
|
||||
Inch string `json:"inch"`
|
||||
}
|
||||
//获取用户购物车订单详情
|
||||
type CartOrderDetailReq {
|
||||
Sn string `form:"sn"`
|
||||
}
|
||||
type CartOrderDetailRsp {
|
||||
DeliveryMethod int64 `json:"delivery_method"`
|
||||
AddressId int64 `json:"address_id"`
|
||||
PayTime string `json:"pay_time"`
|
||||
PayMethod int64 `json:"pay_method"`
|
||||
PayStep int64 `json:"pay_step"`
|
||||
Subtotal string `json:"subtotal"`
|
||||
Total string `json:"total"`
|
||||
Remaining string `json:"remaining"`
|
||||
AddrList []CartAddr `json:"addr_list"`
|
||||
Items []CartDetailItem `json:"items"`
|
||||
}
|
||||
type CartDetailItem {
|
||||
Cover string `json:"cover"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
Amount string `json:"amount"`
|
||||
Option string `json:"option"`
|
||||
Size string `json:"size"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
type CartAddr {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
Mobile string `json:"mobile"`
|
||||
Street string `json:"street"`
|
||||
Suite string `json:"suite"`
|
||||
City string `json:"city"`
|
||||
State string `json:"state"`
|
||||
ZipCode string `json:"zip_code"`
|
||||
IsDefault int64 `json:"is_default"`
|
||||
}
|
||||
Reference in New Issue
Block a user