fix:订单详情

This commit is contained in:
momo
2023-09-21 12:11:15 +08:00
parent 37fc648025
commit 30ae7eb814
11 changed files with 178 additions and 35 deletions

View File

@@ -14,8 +14,11 @@ service order {
@handler CreateOrderHandler
post /api/order/create(CreateOrderReq) returns (response);
@handler CreatePrePaymentDepositHandler
post /api/order/create-prepayment-deposit(CreatePrePaymentDepositReq) returns (response);
@handler CreatePrePaymentByDepositHandler
post /api/order/create-prepayment-deposit(CreatePrePaymentByDepositReq) returns (response);
@handler CreatePrePaymentByBalanceHandler
post /api/order/create-prepayment-balance(CreatePrePaymentByBalanceReq) returns (response);
@handler OrderListHandler
get /api/order/list(OrderListReq) returns (response);
@@ -34,9 +37,9 @@ type CreateOrderReq {
DeliveryMethod int64 `json:"delivery_method,options=[1,2]"`
}
type CreatePrePaymentDepositReq {
type CreatePrePaymentByDepositReq {
OrderSn string `json:"order_sn"`
DeliveryMethod int64 `json:"delivery_method"`
DeliveryMethod int64 `json:"delivery_method,options=[1,2]"`
DeliveryAddres DeliveryAddres `json:"delivery_addres,optional"`
}
@@ -46,5 +49,13 @@ type DeliveryAddres {
Mobile string `json:"mobile,optional"`
}
type CreatePrePaymentByBalanceReq {
OrderSn string `json:"order_sn"`
}
type OrderListReq {
DeliveryMethod int64 `json:"delivery_method,options=[0,1,2],optional"`
OrderCycle string `json:"order_cycle,optional"`
Current_page int64 `json:"current_page,optional,default=1"`
Page_size int64 `json:"page_size,optional,default=10"`
}