修改api的request

This commit is contained in:
eson
2023-06-21 16:39:55 +08:00
parent 8857f84bf6
commit 29d5c91736
17 changed files with 36 additions and 75 deletions

View File

@@ -7,15 +7,7 @@ info (
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
import "basic.api"
service user-auth {
@handler GreetHandler

View File

@@ -7,6 +7,9 @@ info (
email: ""
)
type request {}
// response 统一返回码
type response {
@@ -15,17 +18,6 @@ type response {
Data interface{} `json:"data"`
}
// responseJwt 统一返回码
type responseJwt {
Code int `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
}
// Auth 认证结构
type Auth {
AccessSecret string `json:"accessSecret"`

View File

@@ -7,6 +7,7 @@ info (
email: ""
)
import "basic.api"
service canteen {
//获取餐厅详情
@handler GetCanteenDetailHandler

View File

@@ -7,15 +7,7 @@ info (
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
import "basic.api"
service user-auth {
@handler GreetHandler

View File

@@ -7,15 +7,7 @@ info (
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
import "basic.api"
service user-auth {
@handler GreetHandler

View File

@@ -7,15 +7,7 @@ info (
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
import "basic.api"
service user-auth {
@handler GreetHandler

View File

@@ -7,17 +7,9 @@ info (
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"
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
service user-auth {
@handler GreetHandler
get /greet/from/:name(request) returns (response);
service faq {
@handler WetSetSettingHandler
get /web-set/setting(request) returns (response);
}

View File

@@ -42,6 +42,9 @@ service home-user-auth {
@handler UserAddAddressHandler
post /user/add-address(RequestAddAddress) returns (response);
// @handler UserOderListHandler
// get /user/order-list(RequestOrderId) returns (response);
@handler UserOderDeleteHandler
post /user/order-delete(RequestOrderId) returns (response);
}

View File

@@ -6,6 +6,7 @@ info (
author: ""
email: ""
)
import "basic.api"
service map-library {

View File

@@ -6,7 +6,9 @@ info (
author: ""
email: ""
)
import "basic.api"
service orders {
//获取订单发票
@handler GetOrderInvoiceHandler

View File

@@ -6,7 +6,9 @@ info (
author: ""
email: ""
)
import "basic.api"
service product-templatev2 {
//获取产品模板详情
@handler GetTemplatevDetailHandler

View File

@@ -6,7 +6,9 @@ info (
author: ""
email: ""
)
import "basic.api"
service product {
//获取产品列表
@handler GetProductListHandler

View File

@@ -7,15 +7,7 @@ info (
email: ""
)
type request {
// TODO: add members here and delete this comment
Name string `path:"name,options=you|me"` // parameters are auto validated
}
type response {
// TODO: add members here and delete this comment
Message string `json:"message"`
}
import "basic.api"
service user-auth {
@handler GreetHandler

View File

@@ -6,7 +6,9 @@ info (
author: "ldm"
email: ""
)
import "basic.api"
service shopping-cart-confirmation {
//添加入购物车
@handler CartAddHandler