com.dingtalk.api.response.OapiRoleListResponse Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.response;
import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.role.list response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiRoleListResponse extends TaobaoResponse {
private static final long serialVersionUID = 7346458411173281452L;
/**
* errcode
*/
@ApiField("errcode")
private Long errcode;
/**
* errmsg
*/
@ApiField("errmsg")
private String errmsg;
/**
* result
*/
@ApiField("result")
private PageVo result;
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
public Long getErrcode( ) {
return this.errcode;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public String getErrmsg( ) {
return this.errmsg;
}
public void setResult(PageVo result) {
this.result = result;
}
public PageVo getResult( ) {
return this.result;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* roles
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenRole extends TaobaoObject {
private static final long serialVersionUID = 6178876873634112136L;
/**
* 角色id
*/
@ApiField("id")
private Long id;
/**
* 角色名称
*/
@ApiField("name")
private String name;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
/**
* list
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenRoleGroup extends TaobaoObject {
private static final long serialVersionUID = 6633911626592615769L;
/**
* 角色组id
*/
@ApiField("groupId")
private Long groupId;
/**
* 角色组名称
*/
@ApiField("name")
private String name;
/**
* roles
*/
@ApiListField("roles")
@ApiField("open_role")
private List roles;
public Long getGroupId() {
return this.groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public List getRoles() {
return this.roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
}
/**
* result
*
* @author top auto create
* @since 1.0, null
*/
public static class PageVo extends TaobaoObject {
private static final long serialVersionUID = 1598754474634822218L;
/**
* hasMore
*/
@ApiField("hasMore")
private Boolean hasMore;
/**
* list
*/
@ApiListField("list")
@ApiField("open_role_group")
private List list;
/**
* 下次拉取数据的游标
*/
@ApiField("nextCursor")
private Long nextCursor;
public Boolean getHasMore() {
return this.hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public List getList() {
return this.list;
}
public void setList(List list) {
this.list = list;
}
public Long getNextCursor() {
return this.nextCursor;
}
public void setNextCursor(Long nextCursor) {
this.nextCursor = nextCursor;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy