|
@@ -30,36 +30,8 @@ func NewWxRefreshLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WxRefre
|
|
|
svcCtx: svcCtx}
|
|
|
}
|
|
|
|
|
|
-type GetWeChatsResp struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Data []struct {
|
|
|
- Accountid string `json:"accountid"`
|
|
|
- Avatar string `json:"avatar"`
|
|
|
- Brand string `json:"brand"`
|
|
|
- Cid int64 `json:"cid"`
|
|
|
- City string `json:"city"`
|
|
|
- Cname interface{} `json:"cname"`
|
|
|
- Country string `json:"country"`
|
|
|
- Deviceid string `json:"deviceid"`
|
|
|
- Devnickname string `json:"devnickname"`
|
|
|
- Gender int64 `json:"gender"`
|
|
|
- Groupid interface{} `json:"groupid"`
|
|
|
- ID int64 `json:"id"`
|
|
|
- Isonline int64 `json:"isonline"`
|
|
|
- LoginTime int64 `json:"login_time"`
|
|
|
- ModifyTime int64 `json:"modify_time"`
|
|
|
- Module string `json:"module"`
|
|
|
- Province string `json:"province"`
|
|
|
- Snumber int64 `json:"snumber"`
|
|
|
- Wechatid string `json:"wechatid"`
|
|
|
- Wechatnick string `json:"wechatnick"`
|
|
|
- Wechatno string `json:"wechatno"`
|
|
|
- } `json:"data"`
|
|
|
- Msg string `json:"msg"`
|
|
|
-}
|
|
|
-
|
|
|
func (l *WxRefreshLogic) WxRefresh() (resp *types.BaseMsgResp, err error) {
|
|
|
- var result GetWeChatsResp
|
|
|
+ var result types.WorkPhoneGetWeChatsResp
|
|
|
client := req.C().DevMode()
|
|
|
client.SetCommonRetryCount(2).
|
|
|
SetCommonRetryBackoffInterval(1*time.Second, 5*time.Second).
|