2023-05-31 03:38:17 +00:00
|
|
|
syntax = "v1"
|
|
|
|
|
|
|
|
info (
|
2023-06-13 04:15:06 +00:00
|
|
|
title: "购物车服务"
|
2023-05-31 03:38:17 +00:00
|
|
|
desc: // TODO: add description
|
2023-06-13 04:15:06 +00:00
|
|
|
author: "ldm"
|
2023-05-31 03:38:17 +00:00
|
|
|
email: ""
|
|
|
|
)
|
2023-06-13 04:15:06 +00:00
|
|
|
import "basic.api"
|
|
|
|
service shopping-cart-confirmation {
|
|
|
|
//添加入购物车
|
|
|
|
@handler CartAddHandler
|
|
|
|
post /cart/add (CartAddReq) returns (response);
|
2023-05-31 03:38:17 +00:00
|
|
|
}
|
|
|
|
|
2023-06-13 04:15:06 +00:00
|
|
|
//添加入购物车
|
|
|
|
type CartAddReq {
|
|
|
|
DesignId string `json:"design_id"` //设计sn
|
|
|
|
BuyNum int64 `json:"buy_num"` //购买数量
|
2023-06-13 05:07:09 +00:00
|
|
|
IsCheck int64 `json:"is_check,optional"`
|
2023-05-31 03:38:17 +00:00
|
|
|
}
|