com.dingtalk.api.request.OapiEduPeriodMetadataListRequest Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.TaobaoUtils;
import com.dingtalk.api.response.OapiEduPeriodMetadataListResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.edu.period.metadata.list request
*
* @author top auto create
* @since 1.0, 2020.10.14
*/
public class OapiEduPeriodMetadataListRequest extends BaseTaobaoRequest {
/**
* 地区编码
*/
private String areaCode;
/**
* 游标
*/
private Long cursor;
/**
* 排序依赖字段类型
*/
private Long dataOrderType;
/**
* 层级
*/
private Long level;
/**
* 用户id
*/
private String operatorUserid;
/**
* 父id
*/
private Long parentId;
/**
* 每页数据条数
*/
private Long size;
/**
* 排序规则(0:升序,1:降序)
*/
private Long sortType;
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getAreaCode() {
return this.areaCode;
}
public void setCursor(Long cursor) {
this.cursor = cursor;
}
public Long getCursor() {
return this.cursor;
}
public void setDataOrderType(Long dataOrderType) {
this.dataOrderType = dataOrderType;
}
public Long getDataOrderType() {
return this.dataOrderType;
}
public void setLevel(Long level) {
this.level = level;
}
public Long getLevel() {
return this.level;
}
public void setOperatorUserid(String operatorUserid) {
this.operatorUserid = operatorUserid;
}
public String getOperatorUserid() {
return this.operatorUserid;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Long getParentId() {
return this.parentId;
}
public void setSize(Long size) {
this.size = size;
}
public Long getSize() {
return this.size;
}
public void setSortType(Long sortType) {
this.sortType = sortType;
}
public Long getSortType() {
return this.sortType;
}
public String getApiMethodName() {
return "dingtalk.oapi.edu.period.metadata.list";
}
private String topResponseType = Constants.RESPONSE_TYPE_DINGTALK_OAPI;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_OAPI;
}
private String topHttpMethod = DingTalkConstants.HTTP_METHOD_POST;
public String getTopHttpMethod() {
return this.topHttpMethod;
}
public void setTopHttpMethod(String topHttpMethod) {
this.topHttpMethod = topHttpMethod;
}
public void setHttpMethod(String httpMethod) {
this.setTopHttpMethod(httpMethod);
}
public Map getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("area_code", this.areaCode);
txtParams.put("cursor", this.cursor);
txtParams.put("data_order_type", this.dataOrderType);
txtParams.put("level", this.level);
txtParams.put("operator_userid", this.operatorUserid);
txtParams.put("parent_id", this.parentId);
txtParams.put("size", this.size);
txtParams.put("sort_type", this.sortType);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return OapiEduPeriodMetadataListResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(areaCode, "areaCode");
RequestCheckUtils.checkNotEmpty(cursor, "cursor");
RequestCheckUtils.checkNotEmpty(operatorUserid, "operatorUserid");
RequestCheckUtils.checkNotEmpty(size, "size");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy