This commit is contained in:
laodaming
2023-06-13 12:15:06 +08:00
parent 8d190f0097
commit d455f3b256
24 changed files with 905 additions and 15 deletions

View File

@@ -1,23 +1,21 @@
syntax = "v1"
info (
title: // TODO: add title
title: "购物车服务"
desc: // TODO: add description
author: ""
author: "ldm"
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
import "basic.api"
service shopping-cart-confirmation {
//添加入购物车
@handler CartAddHandler
post /cart/add (CartAddReq) returns (response);
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
service user-auth {
@handler GreetHandler
get /greet/from/:name(request) returns (response);
//添加入购物车
type CartAddReq {
DesignId string `json:"design_id"` //设计sn
BuyNum int64 `json:"buy_num"` //购买数量
IsCheck int64 `json:"isCheck,optional"`
}