fix
This commit is contained in:
@@ -32,6 +32,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
Path: "/api/shopping-cart/calculate_cart_price",
|
||||
Handler: CalculateCartPriceHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/api/shopping-cart/get_cart_num",
|
||||
Handler: GetCartNumHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -114,6 +114,10 @@ type CalculateResultItem struct {
|
||||
TotalPrice string `json:"total_price"` //总价
|
||||
}
|
||||
|
||||
type GetCartNumRsp struct {
|
||||
TotalCount int64 `json:"total_count"`
|
||||
}
|
||||
|
||||
type Request struct {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user