This commit is contained in:
2026-04-20 11:34:35 +08:00
parent 957976db31
commit bdbd6ae7e9
22 changed files with 761 additions and 238 deletions

View File

@@ -161,13 +161,14 @@ type (
List []AgentSubordinateList `json:"list"` // 查询列表
}
AgentSubordinateList {
ID int64 `json:"id"`
Mobile string `json:"mobile"`
CreateTime string `json:"create_time"`
LevelName string `json:"level_name"`
TotalOrders int64 `json:"total_orders"` // 总单量
TotalEarnings float64 `json:"total_earnings"` // 总金额
TotalContribution float64 `json:"total_contribution"` // 总贡献
ID int64 `json:"id"`
Mobile string `json:"mobile"`
CreateTime string `json:"create_time"`
LevelName string `json:"level_name"`
TotalOrders int64 `json:"total_orders"` // 总单量
TotalEarnings float64 `json:"total_earnings"` // 总金额
TotalContribution float64 `json:"total_contribution"` // 总贡献
AccountCancelled bool `json:"account_cancelled"` // 账号是否已注销
}
GetAgentSubordinateContributionDetailReq {
Page int64 `form:"page"` // 页码

View File

@@ -110,10 +110,13 @@ service main {
post /user/getToken returns (MobileCodeLoginResp)
@handler cancelOut
post /user/cancelOut
post /user/cancelOut (CancelOutReq)
}
type (
CancelOutReq {
Code string `json:"code" validate:"required"`
}
UserInfoResp {
UserInfo User `json:"userInfo"`
}
@@ -143,7 +146,7 @@ type (
sendSmsReq {
Mobile string `json:"mobile" validate:"required,mobile"`
CaptchaVerifyParam string `json:"captchaVerifyParam,optional,omitempty"`
ActionType string `json:"actionType,optional" validate:"oneof=login register query agentApply realName bindMobile"`
ActionType string `json:"actionType,optional" validate:"oneof=login register query agentApply realName bindMobile cancelAccount"`
}
)