Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into feature/auth
This commit is contained in:
20
server_api/base.api
Normal file
20
server_api/base.api
Normal file
@@ -0,0 +1,20 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: // TODO: add title
|
||||
desc: // TODO: add description
|
||||
author: ""
|
||||
email: ""
|
||||
)
|
||||
|
||||
import "basic.api"
|
||||
|
||||
service base {
|
||||
@handler MerchantCategoryListHandler
|
||||
get /api/base/merchant_category_list(MerchantCategoryListReq) returns (response);
|
||||
}
|
||||
|
||||
type (
|
||||
MerchantCategoryListReq {
|
||||
}
|
||||
)
|
||||
@@ -63,8 +63,19 @@ service home-user-auth {
|
||||
// 再来一单
|
||||
@handler UserAgainOrderHandler
|
||||
get /api/user/one-more-order (UserAgainOrderReq) returns (response);
|
||||
|
||||
// 保存商户信息
|
||||
@handler UserInfoSetHandler
|
||||
post /api/user/set_user_info (UserInfoSetReq) returns (response);
|
||||
}
|
||||
|
||||
type (
|
||||
UserInfoSetReq {
|
||||
Module string `form:"module,options=[merchant_category]"` // json格式字符串
|
||||
Metadata string `form:"metadata"` // json格式字符串
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
UserAgainOrderReq {
|
||||
Sn string `form:"sn"` // 订单编号
|
||||
|
||||
Reference in New Issue
Block a user