feat:新增商户列表/保存用户信息

This commit is contained in:
Hiven
2023-08-14 14:40:50 +08:00
parent 9b0a18fcd8
commit 57e635c26c
22 changed files with 665 additions and 7 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

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