com.dahuatech.icc.brm.model.v202010.car.BrmCarQueryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-brm Show documentation
Show all versions of java-sdk-brm Show documentation
Dahua ICC Open API SDK for Java
The newest version!
package com.dahuatech.icc.brm.model.v202010.car;
import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.brm.constant.BrmConstant;
import com.dahuatech.icc.brm.constant.ParamConstant;
import com.dahuatech.icc.brm.exception.BusinessException;
import com.dahuatech.icc.common.ParamValidEnum;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.util.StringUtils;
/**
* 部门新增
*
* @author 232676
* @since 1.0.0 2020/11/5 11:27
*/
public class BrmCarQueryRequest extends AbstractIccRequest {
private String carCode;
public String getCarCode() {
return carCode;
}
public void setCarCode(String carCode) {
this.carCode = carCode;
}
public BrmCarQueryRequest(String carCode) {
super(BrmConstant.url(BrmConstant.BRM_URL_CAR_DETAIL_REST_GET, carCode), Method.GET);
this.carCode = carCode;
}
@Override
public Class getResponseClass() {
return BrmCarQueryResponse.class;
}
public void businessValid() {
if(StringUtils.isEmpty(carCode)){
throw new BusinessException(ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getCode(),ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getErrMsg(), "carCode");
}
}
}