Exemplo n.º 1
0
 public Response<Boolean> setDefConsignee(Long consigneeId, String appKey) {
   Request request = new BaseRequest();
   request.setParam("consigneeId", consigneeId);
   request.setParam("appKey", appKey);
   request.setCommand(ActionEnum.SET_DEFAULT_CONSIGNEE.getActionName());
   Response<Boolean> response = userDispatchService.execute(request);
   return response;
 }
Exemplo n.º 2
0
 public Response<List<UserConsigneeDTO>> queryConsignee(Long userId, String appKey) {
   Request request = new BaseRequest();
   request.setParam("userId", userId);
   request.setParam("appKey", appKey);
   request.setCommand(ActionEnum.QUERY_CONSIGNEE.getActionName());
   Response<List<UserConsigneeDTO>> response = userDispatchService.execute(request);
   return response;
 }
Exemplo n.º 3
0
 public Response<UserConsigneeDTO> getConsigneeById(Long userId, Long consigneeId, String appKey) {
   Request request = new BaseRequest();
   request.setParam("userId", userId);
   request.setParam("consigneeId", consigneeId);
   request.setParam("appKey", appKey);
   request.setCommand(ActionEnum.GET_CONSIGNEE_BY_ID.getActionName());
   Response<UserConsigneeDTO> response = userDispatchService.execute(request);
   return response;
 }
Exemplo n.º 4
0
  public Response<Boolean> updateConsignee(UserConsigneeDTO userConsigneeDTO, String appKey) {
    Request request = new BaseRequest();
    request.setParam("consigneeDTO", userConsigneeDTO);
    request.setParam("appKey", appKey);
    request.setCommand(ActionEnum.UPDATE_CONSIGNEE.getActionName());

    Response<Boolean> response = userDispatchService.execute(request);
    return response;
  }