|
@@ -122,9 +122,19 @@ type GetEtaTrialMobileCountReq struct {
|
|
|
Mobile string `description:"手机号"`
|
|
|
}
|
|
|
|
|
|
-type GetEtaTrialMobileCountResp struct {
|
|
|
+type EtaTrialMobileCount struct {
|
|
|
Count int
|
|
|
}
|
|
|
+type GetEtaTrialMobileCountResp struct {
|
|
|
+ Ret int
|
|
|
+ Msg string
|
|
|
+ ErrMsg string
|
|
|
+ ErrCode string
|
|
|
+ Data *EtaTrialMobileCount
|
|
|
+ Success bool `description:"true 执行成功,false 执行失败"`
|
|
|
+ IsSendEmail bool `json:"-" description:"true 发送邮件,false 不发送邮件"`
|
|
|
+ IsAddLog bool `json:"-" description:"true 新增操作日志,false 不新增操作日志" `
|
|
|
+}
|
|
|
|
|
|
// GetEtaTrialMobileCount CRM_ETA服务-体验版用户添加手工权限
|
|
|
func GetEtaTrialMobileCount(mobile string) (count int, err error) {
|
|
@@ -147,7 +157,7 @@ func GetEtaTrialMobileCount(mobile string) (count int, err error) {
|
|
|
}
|
|
|
|
|
|
_, resultByte, err := post(string(reqJson), "/v1/eta_trial/mobile/count")
|
|
|
- resp := new(models.BaseResponse)
|
|
|
+ resp := new(GetEtaTrialMobileCountResp)
|
|
|
err = json.Unmarshal(resultByte, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -156,8 +166,7 @@ func GetEtaTrialMobileCount(mobile string) (count int, err error) {
|
|
|
err = fmt.Errorf("result: %s, errmsg: %s", resp.Msg, resp.ErrMsg)
|
|
|
return
|
|
|
}
|
|
|
- data := resp.Data.(GetEtaTrialMobileCountResp)
|
|
|
- count = data.Count
|
|
|
+ count = resp.Data.Count
|
|
|
return
|
|
|
}
|
|
|
|