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

com.dahuatech.icc.brm.model.v202010.user.BrmUserPageRequest Maven / Gradle / Ivy

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

import com.dahuatech.hutool.http.ContentType;
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.exception.ClientException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.util.CollectionUtil;

import java.util.List;

public class BrmUserPageRequest extends AbstractIccRequest {
    private Integer pageNum;
    private Integer pageSize;
    private String sort;
    private String sortType;
    private String searchKey;
    private List userIdList;
    private List ownerCodeList;
    private List loginNameList;
    private List personIdList;
    private Integer isReuse;
    private Boolean includeSubOwnerCodeFlag;

    public BrmUserPageRequest() {
        super(BrmConstant.url(BrmConstant.BRM_URL_USER_PAGE_POST), Method.POST);
        // 可能参数为空,hutool使用默认application/x-www-form-urlencoded
        httpRequest.contentType(ContentType.JSON.toString());
        // 设置个空置,防止Required request body is missing
        putBodyParameter("pageNum", 1);
        putBodyParameter("pageSize", 10);
    }

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

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        putBodyParameter("pageNum", pageNum);
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        putBodyParameter("pageSize", pageSize);
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
        putBodyParameter("sort", sort);
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
        putBodyParameter("sortType", sortType);
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
        putBodyParameter("searchKey", searchKey);
    }

    public List getUserIdList() {
        return userIdList;
    }

    public void setUserIdList(List userIdList) {
        this.userIdList = userIdList;
        putBodyParameter("userIdList", userIdList);
    }

    public List getOwnerCodeList() {
        return ownerCodeList;
    }

    public void setOwnerCodeList(List ownerCodeList) {
        this.ownerCodeList = ownerCodeList;
        putBodyParameter("ownerCodeList", ownerCodeList);
    }

    public List getLoginNameList() {
        return loginNameList;
    }

    public void setLoginNameList(List loginNameList) {
        this.loginNameList = loginNameList;
        putBodyParameter("loginNameList", loginNameList);
    }

    public List getPersonIdList() {
        return personIdList;
    }

    public void setPersonIdList(List personIdList) {
        this.personIdList = personIdList;
        putBodyParameter("personIdList", personIdList);
    }

    public Integer getIsReuse() {
        return isReuse;
    }

    public void setIsReuse(Integer isReuse) {
        this.isReuse = isReuse;
        putBodyParameter("isReuse", isReuse);
    }

    public Boolean getIncludeSubOwnerCodeFlag() {
        return includeSubOwnerCodeFlag;
    }

    public void setIncludeSubOwnerCodeFlag(Boolean includeSubOwnerCodeFlag) {
        this.includeSubOwnerCodeFlag = includeSubOwnerCodeFlag;
        putBodyParameter("includeSubOwnerCodeFlag", includeSubOwnerCodeFlag);
    }

    @Override
    public String toString() {
        return "BrmUserPageRequest{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", sort='" + sort + '\'' +
                ", sortType='" + sortType + '\'' +
                ", searchKey=" + searchKey +
                ", userIdList=" + userIdList +
                ", ownerCodeList=" + ownerCodeList +
                ", loginNameList=" + loginNameList +
                ", personIdList=" + personIdList +
                ", isReuse=" + isReuse +
                ", includeSubOwnerCodeFlag=" + includeSubOwnerCodeFlag +
                '}';
    }

    public void businessValid() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy