同步专业版IM服务

This commit is contained in:
heavyrian2012
2024-02-02 13:44:47 +08:00
parent 1e17fa1db4
commit f1e46fca75
3 changed files with 12 additions and 1 deletions
@@ -97,4 +97,8 @@ public class GeneralAdmin {
public static IMResult<HealthCheckResult> healthCheck() throws Exception {
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.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 {