同步专业版IM服务
This commit is contained in:
@@ -91,7 +91,7 @@ public interface APIPath {
|
|||||||
String Check_User_Subscribe_Channel = "/admin/channel/is_subscribed";
|
String Check_User_Subscribe_Channel = "/admin/channel/is_subscribed";
|
||||||
String Get_System_Setting = "/admin/system/get_setting";
|
String Get_System_Setting = "/admin/system/get_setting";
|
||||||
String Put_System_Setting = "/admin/system/put_setting";
|
String Put_System_Setting = "/admin/system/put_setting";
|
||||||
|
String GET_CUSTOMER = "/admin/customer";
|
||||||
String Health = "/admin/health";
|
String Health = "/admin/health";
|
||||||
|
|
||||||
String Conference_List = "/admin/conference/list";
|
String Conference_List = "/admin/conference/list";
|
||||||
|
|||||||
@@ -97,4 +97,8 @@ public class GeneralAdmin {
|
|||||||
public static IMResult<HealthCheckResult> healthCheck() throws Exception {
|
public static IMResult<HealthCheckResult> healthCheck() throws Exception {
|
||||||
return AdminHttpUtils.httpGet(APIPath.Health, HealthCheckResult.class);
|
return AdminHttpUtils.httpGet(APIPath.Health, HealthCheckResult.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static IMResult<String> getCustomer() throws Exception {
|
||||||
|
return AdminHttpUtils.httpJsonPost(APIPath.GET_CUSTOMER, null, String.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -946,6 +946,13 @@ public class Main {
|
|||||||
System.out.println("health check failure");
|
System.out.println("health check failure");
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMResult<String> customerResult = GeneralAdmin.getCustomer();
|
||||||
|
if(customerResult != null && customerResult.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) {
|
||||||
|
System.out.println("customer is " + customerResult.getResult());
|
||||||
|
} else {
|
||||||
|
System.out.println("not support get customer");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void testChatroom() throws Exception {
|
static void testChatroom() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user