feat(main): fix url
This commit is contained in:
@@ -1,29 +1,31 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "代理服务"
|
||||
desc: "代理服务接口"
|
||||
author: "Liangzai"
|
||||
email: "2440983361@qq.com"
|
||||
version: "v1"
|
||||
title: "代理服务"
|
||||
desc: "代理服务接口"
|
||||
author: "Liangzai"
|
||||
email: "2440983361@qq.com"
|
||||
version: "v1"
|
||||
)
|
||||
|
||||
import (
|
||||
"agent/agent.api"
|
||||
"agent/agent.api"
|
||||
)
|
||||
|
||||
@server (
|
||||
prefix: api/v1
|
||||
group: agent
|
||||
prefix: api/v1/agent
|
||||
group: agent
|
||||
)
|
||||
|
||||
service main {
|
||||
// 提交代理申请
|
||||
@handler ApplyForAgent
|
||||
post /agent/apply (AgentApplyReq) returns (AgentApplyResp)
|
||||
@handler GetAgentInfo
|
||||
get /info returns (AgentInfoResp)
|
||||
|
||||
// 查询代理申请状态
|
||||
@handler GetAgentAuditStatus
|
||||
get /agent/audit/status (AgentAuditStatusReq) returns (AgentAuditStatusResp)
|
||||
// 提交代理申请
|
||||
@handler ApplyForAgent
|
||||
post /apply (AgentApplyReq) returns (AgentApplyResp)
|
||||
|
||||
// 查询代理申请状态
|
||||
@handler GetAgentAuditStatus
|
||||
get /audit/status (AgentAuditStatusReq) returns (AgentAuditStatusResp)
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,13 @@ info (
|
||||
)
|
||||
|
||||
type (
|
||||
AgentInfoResp {
|
||||
isAgent bool `json:"is_agent"`
|
||||
region string `json:"region"`
|
||||
mobile string `json:"mobile"`
|
||||
wechatID string `json:"wechat_id"`
|
||||
}
|
||||
|
||||
// 代理申请请求参数
|
||||
AgentApplyReq {
|
||||
UserID int64 `json:"user_id"`
|
||||
|
||||
@@ -53,9 +53,9 @@ service main {
|
||||
@handler detail
|
||||
get /user/detail returns (UserInfoResp)
|
||||
|
||||
@doc "get new token"
|
||||
@handler getToken
|
||||
post /user/getToken returns (MobileCodeLoginResp)
|
||||
@doc "get new token"
|
||||
@handler getToken
|
||||
post /user/getToken returns (MobileCodeLoginResp)
|
||||
}
|
||||
|
||||
//============================> auth v1 <============================
|
||||
|
||||
Reference in New Issue
Block a user