using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// CorpRoleGetrolegroupResponse. /// public class CorpRoleGetrolegroupResponse : DingTalkResponse { /// /// result /// [XmlElement("result")] public DingOpenResultDomain Result { get; set; } /// /// OpenRoleDomain Data Structure. /// [Serializable] public class OpenRoleDomain : TopObject { /// /// 角色id /// [XmlElement("role_id")] public long RoleId { get; set; } /// /// 角色名 /// [XmlElement("role_name")] public string RoleName { get; set; } } /// /// OpenRoleGroupDomain Data Structure. /// [Serializable] public class OpenRoleGroupDomain : TopObject { /// /// 角色组名 /// [XmlElement("group_name")] public string GroupName { get; set; } /// /// 角色列表信息 /// [XmlArray("roles")] [XmlArrayItem("open_role")] public List Roles { get; set; } } /// /// DingOpenResultDomain Data Structure. /// [Serializable] public class DingOpenResultDomain : TopObject { /// /// dingOpenErrcode /// [XmlElement("ding_open_errcode")] public long DingOpenErrcode { get; set; } /// /// errorMsg /// [XmlElement("error_msg")] public string ErrorMsg { get; set; } /// /// 角色组信息 /// [XmlElement("role_group")] public OpenRoleGroupDomain RoleGroup { get; set; } /// /// success /// [XmlElement("success")] public bool Success { get; set; } } } }