add vip ExpiryTime
This commit is contained in:
parent
214e087197
commit
15a258efc2
@ -68,6 +68,7 @@ type (
|
|||||||
region string `json:"region"`
|
region string `json:"region"`
|
||||||
mobile string `json:"mobile"`
|
mobile string `json:"mobile"`
|
||||||
wechatID string `json:"wechat_id"`
|
wechatID string `json:"wechat_id"`
|
||||||
|
expiryTime string `json:"expiry_time"`
|
||||||
}
|
}
|
||||||
// 查询代理申请状态响应
|
// 查询代理申请状态响应
|
||||||
AgentAuditStatusResp {
|
AgentAuditStatusResp {
|
||||||
|
@ -65,12 +65,13 @@ func (l *GetAgentInfoLogic) GetAgentInfo() (resp *types.AgentInfoResp, err error
|
|||||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "获取代理信息, 解密手机号失败: %v", err)
|
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "获取代理信息, 解密手机号失败: %v", err)
|
||||||
}
|
}
|
||||||
return &types.AgentInfoResp{
|
return &types.AgentInfoResp{
|
||||||
AgentID: agent.Id,
|
AgentID: agent.Id,
|
||||||
Level: agent.LevelName,
|
Level: agent.LevelName,
|
||||||
IsAgent: true,
|
IsAgent: true,
|
||||||
Status: 1,
|
Status: 1,
|
||||||
Region: agent.Region,
|
Region: agent.Region,
|
||||||
Mobile: agent.Mobile,
|
Mobile: agent.Mobile,
|
||||||
WechatID: lzUtils.NullStringToString(agent.WechatId),
|
ExpiryTime: agent.MembershipExpiryTime.Time.Format("2006-01-02 15:04:05"),
|
||||||
|
WechatID: lzUtils.NullStringToString(agent.WechatId),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
@ -52,13 +52,14 @@ type AgentGeneratingLinkResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type AgentInfoResp struct {
|
type AgentInfoResp struct {
|
||||||
Status int64 `json:"status"` // 0=待审核,1=审核通过,2=审核未通过,3=未申请
|
Status int64 `json:"status"` // 0=待审核,1=审核通过,2=审核未通过,3=未申请
|
||||||
IsAgent bool `json:"is_agent"`
|
IsAgent bool `json:"is_agent"`
|
||||||
AgentID int64 `json:"agent_id"`
|
AgentID int64 `json:"agent_id"`
|
||||||
Level string `json:"level"`
|
Level string `json:"level"`
|
||||||
Region string `json:"region"`
|
Region string `json:"region"`
|
||||||
Mobile string `json:"mobile"`
|
Mobile string `json:"mobile"`
|
||||||
WechatID string `json:"wechat_id"`
|
WechatID string `json:"wechat_id"`
|
||||||
|
ExpiryTime string `json:"expiry_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AgentMembershipProductConfigReq struct {
|
type AgentMembershipProductConfigReq struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user