using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// CorpRoleListResponse. /// public class CorpRoleListResponse : DingTalkResponse { /// /// result /// [XmlElement("result")] public ResultDomain Result { get; set; } /// /// RolesDomain Data Structure. /// [Serializable] public class RolesDomain : TopObject { /// /// 角色ID /// [XmlElement("id")] public long Id { get; set; } /// /// 角色名称 /// [XmlElement("role_name")] public string RoleName { get; set; } } /// /// RoleGroupsDomain Data Structure. /// [Serializable] public class RoleGroupsDomain : TopObject { /// /// 角色分组名称 /// [XmlElement("group_name")] public string GroupName { get; set; } /// /// 角色列表 /// [XmlArray("roles")] [XmlArrayItem("roles")] public List Roles { get; set; } } /// /// ResultDomain Data Structure. /// [Serializable] public class ResultDomain : TopObject { /// /// 分页是否还有数据 /// [XmlElement("has_more")] public string HasMore { get; set; } /// /// 角色分组列表 /// [XmlArray("list")] [XmlArrayItem("role_groups")] public List List { get; set; } } } }