feat(main): add agent
This commit is contained in:
29
app/user/cmd/api/desc/agent.api
Normal file
29
app/user/cmd/api/desc/agent.api
Normal file
@@ -0,0 +1,29 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "代理服务"
|
||||
desc: "代理服务接口"
|
||||
author: "Liangzai"
|
||||
email: "2440983361@qq.com"
|
||||
version: "v1"
|
||||
)
|
||||
|
||||
import (
|
||||
"agent/agent.api"
|
||||
)
|
||||
|
||||
@server (
|
||||
prefix: api/v1
|
||||
group: agent
|
||||
)
|
||||
|
||||
service main {
|
||||
// 提交代理申请
|
||||
@handler ApplyForAgent
|
||||
post /agent/apply (AgentApplyReq) returns (AgentApplyResp)
|
||||
|
||||
// 查询代理申请状态
|
||||
@handler GetAgentAuditStatus
|
||||
get /agent/audit/status (AgentAuditStatusReq) returns (AgentAuditStatusResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user