This commit is contained in:
laodaming
2023-06-15 15:10:22 +08:00
parent 200e821c85
commit 57dd04ea27
4 changed files with 35 additions and 20 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"`
}