tyc-server/app/user/cmd/api/desc/agent.api

32 lines
537 B
Plaintext
Raw Normal View History

2025-02-13 19:39:16 +08:00
syntax = "v1"
info (
2025-02-18 15:23:26 +08:00
title: "代理服务"
desc: "代理服务接口"
author: "Liangzai"
email: "2440983361@qq.com"
version: "v1"
2025-02-13 19:39:16 +08:00
)
import (
2025-02-18 15:23:26 +08:00
"agent/agent.api"
2025-02-13 19:39:16 +08:00
)
@server (
2025-02-18 15:23:26 +08:00
prefix: api/v1/agent
group: agent
2025-02-13 19:39:16 +08:00
)
service main {
2025-02-18 15:23:26 +08:00
@handler GetAgentInfo
get /info returns (AgentInfoResp)
// 提交代理申请
@handler ApplyForAgent
post /apply (AgentApplyReq) returns (AgentApplyResp)
2025-02-13 19:39:16 +08:00
2025-02-18 15:23:26 +08:00
// 查询代理申请状态
@handler GetAgentAuditStatus
get /audit/status (AgentAuditStatusReq) returns (AgentAuditStatusResp)
2025-02-13 19:39:16 +08:00
}