Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-06-15 16:10:35 +08:00
55 changed files with 926 additions and 327 deletions

View File

@@ -1,23 +1,24 @@
syntax = "v1"
info (
title: // TODO: add title
title: "订单服务"// TODO: add title
desc: // TODO: add description
author: ""
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 orders {
//获取订单发票
@handler GetOrderInvoiceHandler
get /order/invoice (GetOrderInvoiceReq) returns (response);
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
//获取订单发票
type GetOrderInvoiceReq {
Sn string `json:"sn"`
TimeZone string `json:"timeZone"`
}
service user-auth {
@handler GreetHandler
get /greet/from/:name(request) returns (response);
type GetOrderInvoiceRsp {
FileName string `json:"file_name"`
Pdf int64 `json:"pdf"`
}

View File

@@ -26,9 +26,6 @@ service shopping-cart-confirmation {
//变更发货方式和地址
@handler ChangeOrderMethodHandler
post /cart/chang-order-method (ChangeOrderMethodReq) returns (response);
//创建订单
@handler CartCreateOrderHandler
post /cart/create-order (CartCreateOrderReq) returns (response);
}
//添加入购物车
@@ -123,9 +120,4 @@ type ChangeOrderMethodReq {
DeliveryMethod int64 `json:"delivery_method , options=1|2"`
AddressId int64 `json:"address_id"`
PayMethod int64 `json:"pay_method"`
}
//创建订单
type CartCreateOrderReq{
}