All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.icc.brm.model.v202010.department.BrmDeptQueryRequest Maven / Gradle / Ivy

The newest version!
package com.dahuatech.icc.brm.model.v202010.department;

import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.brm.constant.BrmConstant;
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;

/**
 * 部门详情
 *
 * @author 232676
 * @since 1.0.0 2020/11/5 11:27
 */
public class BrmDeptQueryRequest extends AbstractIccRequest {

    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BrmDeptQueryRequest(Long id) {
    super(BrmConstant.url(BrmConstant.BRM_URL_DEPT_DETAIL_REST_GET, id), Method.GET);
    this.id = id;
  }

  @Override
  public Class getResponseClass() {
    return BrmDeptQueryResponse.class;
  }

    public void businessValid() {
        if(id == null){
            throw new BusinessException(ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getCode(),ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getErrMsg(), "id");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy