content: package com.platform.core.biz.client;
  
  import com.platform.core.biz.model.HandleCallbackParam;
  import com.platform.core.biz.model.HandleProcessCallbackParam;
  import com.platform.core.biz.model.RegistryParam;
  import com.platform.core.util.JobRemotingUtil;
  import com.platform.core.biz.AdminBiz;
  import com.platform.core.biz.model.ReturnT;
  
  import java.util.List;
  
  public class AdminBizClient implements AdminBiz {
  
      public AdminBizClient() {
      }
      public AdminBizClient(String addressUrl, String accessToken) {
          this.addressUrl = addressUrl;
          this.accessToken = accessToken;
  
          // valid
          if (!this.addressUrl.endsWith("/")) {
              this.addressUrl = this.addressUrl + "/";
          }
      }
  
      private String addressUrl ;
      private String accessToken;
  
  
      @Override
      public ReturnT<String> callback(List<HandleCallbackParam> callbackParamList) {
          return JobRemotingUtil.postBody(addressUrl+"api/callback", accessToken, callbackParamList, 3);
      }
  
      @Override
      public ReturnT<String> processCallback(List<HandleProcessCallbackParam> callbackParamList) {
          return JobRemotingUtil.postBody(addressUrl + "api/processCallback", accessToken, callbackParamList, 3);
      }
  
      @Override
      public ReturnT<String> registry(RegistryParam registryParam) {
          return JobRemotingUtil.postBody(addressUrl + "api/registry", accessToken, registryParam, 3);
      }
  
      @Override
      public ReturnT<String> registryRemove(RegistryParam registryParam) {
          return JobRemotingUtil.postBody(addressUrl + "api/registryRemove", accessToken, registryParam, 3);
      }
  }
  