add wxmini

This commit is contained in:
2025-06-24 00:11:19 +08:00
parent b0e47d1658
commit 06eb69b39f
19 changed files with 508 additions and 30 deletions

View File

@@ -7,7 +7,23 @@ info (
email: "2440983361@qq.com"
version: "v1"
)
@server (
prefix: api/v1/agent
group: agent
)
service main {
// 获取推广二维码海报
@handler GetAgentPromotionQrcode
get /promotion/qrcode (GetAgentPromotionQrcodeReq)
}
type (
GetAgentPromotionQrcodeReq{
QrcodeType string `form:"qrcode_type"`
QrcodeUrl string `form:"qrcode_url"`
}
)
// 代理服务基本类型定义
type AgentProductConfig {
ProductID int64 `json:"product_id"`

View File

@@ -50,9 +50,7 @@ type (
type (
WXMiniAuthReq {
Code string `json:"code"`
IV string `json:"iv"`
EncryptedData string `json:"encryptedData"`
Code string `json:"code"`
}
WXMiniAuthResp {
AccessToken string `json:"accessToken"`