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