31 lines
665 B
Plaintext
31 lines
665 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "订单服务"// TODO: add title
|
|
desc: // TODO: add description
|
|
author: ""
|
|
email: ""
|
|
)
|
|
import "basic.api"
|
|
service orders {
|
|
//获取订单发票
|
|
@handler GetOrderInvoiceHandler
|
|
get /order/invoice (GetOrderInvoiceReq) returns (response);
|
|
//获取订单详情
|
|
@handler GetOrderDetailHandler
|
|
get /order/detail (GetOrderDetailReq) returns (response);
|
|
}
|
|
|
|
//获取订单发票
|
|
type GetOrderInvoiceReq {
|
|
Sn string `form:"sn"`
|
|
TimeZone int64 `form:"timeZone"`
|
|
}
|
|
type GetOrderInvoiceRsp {
|
|
FileName string `json:"file_name"`
|
|
Pdf string `json:"pdf"`
|
|
}
|
|
//获取订单详情
|
|
type GetOrderDetailReq {
|
|
Sn string `form:"sn"`
|
|
} |