general admin两个用户设置的接口改为public
This commit is contained in:
@@ -44,8 +44,7 @@ public class GeneralAdmin {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static IMResult<UserSettingPojo> getUserSetting(String userId, int scope, String key) throws Exception {
|
||||||
private static IMResult<UserSettingPojo> getUserSetting(String userId, int scope, String key) throws Exception {
|
|
||||||
String path = APIPath.User_Get_Setting;
|
String path = APIPath.User_Get_Setting;
|
||||||
UserSettingPojo pojo = new UserSettingPojo();
|
UserSettingPojo pojo = new UserSettingPojo();
|
||||||
pojo.setUserId(userId);
|
pojo.setUserId(userId);
|
||||||
@@ -54,7 +53,7 @@ public class GeneralAdmin {
|
|||||||
return AdminHttpUtils.httpJsonPost(path, pojo, UserSettingPojo.class);
|
return AdminHttpUtils.httpJsonPost(path, pojo, UserSettingPojo.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IMResult<Void> setUserSetting(String userId, int scope, String key, String value) throws Exception {
|
public static IMResult<Void> setUserSetting(String userId, int scope, String key, String value) throws Exception {
|
||||||
String path = APIPath.User_Put_Setting;
|
String path = APIPath.User_Put_Setting;
|
||||||
UserSettingPojo pojo = new UserSettingPojo();
|
UserSettingPojo pojo = new UserSettingPojo();
|
||||||
pojo.setUserId(userId);
|
pojo.setUserId(userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user