Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into feature/auth

This commit is contained in:
eson
2023-08-16 10:22:12 +08:00
38 changed files with 982 additions and 277 deletions

20
server_api/base.api Normal file
View 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 {
}
)

View File

@@ -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"` // 订单编号