123
This commit is contained in:
@@ -5,9 +5,11 @@ import com.dtflys.forest.annotation.Body;
|
||||
import com.dtflys.forest.annotation.Post;
|
||||
import com.ruoyi.yunxin.interceptor.GlodonTokenInterceptor;
|
||||
import com.ruoyi.yunxin.req.CreateUserReq;
|
||||
import com.ruoyi.yunxin.req.GetUnifoReq;
|
||||
import com.ruoyi.yunxin.req.UpdateUinfoReq;
|
||||
import com.ruoyi.yunxin.resp.YxCommonR;
|
||||
import com.ruoyi.yunxin.resp.YxInfoR;
|
||||
import com.ruoyi.yunxin.resp.YxUpdateUinfoR;
|
||||
|
||||
@BaseRequest(baseURL = "${baseUrl}", interceptor = GlodonTokenInterceptor.class)
|
||||
public interface ImUserRefClient {
|
||||
@@ -16,4 +18,6 @@ public interface ImUserRefClient {
|
||||
@Post(url = "/nimserver/user/updateUinfo.action")
|
||||
YxCommonR updateUinfo(@Body UpdateUinfoReq query);
|
||||
|
||||
@Post(url = "nimserver/user/getUinfos.action")
|
||||
YxUpdateUinfoR getUinfos(@Body GetUnifoReq query);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.ruoyi.yunxin.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class GetUnifoReq {
|
||||
private String accids;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.ruoyi.yunxin.resp;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class YxUpdateUinfoR {
|
||||
private Integer code;
|
||||
private List<Uinfos> uinfos;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public static class Uinfos {
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
@JsonProperty("accid")
|
||||
private String accid;
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
@JsonProperty("icon")
|
||||
private String icon;
|
||||
/**
|
||||
* 签名
|
||||
*/
|
||||
@JsonProperty("sign")
|
||||
private String sign;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
/**
|
||||
* 生日
|
||||
*/
|
||||
@JsonProperty("birth")
|
||||
private String birth;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@JsonProperty("mobile")
|
||||
private String mobile;
|
||||
/**
|
||||
* 扩展信息
|
||||
*/
|
||||
@JsonProperty("ex")
|
||||
private String ex;
|
||||
/**
|
||||
* 性别:0表示未知,1表示男,2表示女
|
||||
*/
|
||||
@JsonProperty("gender")
|
||||
private Integer gender;
|
||||
/**
|
||||
* 账号是否有效
|
||||
*/
|
||||
@JsonProperty("valid")
|
||||
private Boolean valid;
|
||||
/**
|
||||
* 账号是否被全局禁言
|
||||
*/
|
||||
@JsonProperty("mute")
|
||||
private Boolean mute;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user