fix
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user