qnc-server/app/user/cmd/api/desc/agent/agent.api
2025-02-18 15:23:26 +08:00

42 lines
899 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "v1"
info (
title: "代理服务"
desc: "代理服务接口"
author: "Liangzai"
email: "2440983361@qq.com"
version: "v1"
)
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"`
Region string `json:"region"`
Mobile string `json:"mobile"`
WechatID string `json:"wechat_id"`
}
// 代理申请响应
AgentApplyResp {
Status string `json:"status"`
Message string `json:"message"`
}
// 查询代理申请状态请求参数
AgentAuditStatusReq {
UserID int64 `json:"user_id"`
}
// 查询代理申请状态响应
AgentAuditStatusResp {
Status int `json:"status"` // 0=待审核1=审核通过2=审核未通过
AuditReason string `json:"audit_reason"`
}
)