using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// OapiContactRolevisibilityGetResponse. /// public class OapiContactRolevisibilityGetResponse : DingTalkResponse { /// /// 错误码 /// [XmlElement("errcode")] public long Errcode { get; set; } /// /// 错误信息 /// [XmlElement("errmsg")] public string Errmsg { get; set; } /// /// 权限设置列表 /// [XmlArray("result")] [XmlArrayItem("open_role_permission_for_contact")] public List Result { get; set; } /// /// 是否成功: true表示成功,false表示失败 /// [XmlElement("success")] public bool Success { get; set; } /// /// OpenRolePermissionForContactDomain Data Structure. /// [Serializable] public class OpenRolePermissionForContactDomain : TopObject { /// /// 部门id列表 /// [XmlArray("dept_ids")] [XmlArrayItem("number")] public List DeptIds { get; set; } /// /// 角色id列表 /// [XmlArray("role_ids")] [XmlArrayItem("number")] public List RoleIds { get; set; } /// /// SubjectSide(1) 还是 ObjectSide(2) /// [XmlElement("side")] public long Side { get; set; } /// /// permit(1) 还是 deny(2) /// [XmlElement("type")] public long Type { get; set; } /// /// staffid列表 /// [XmlArray("user_ids")] [XmlArrayItem("string")] public List UserIds { get; set; } /// /// 可见性设置类型:5. permit_self_node_and_children(仅可见自己所在节点及子节点) 6. permit_self_node_only(仅可见自己所在的节点) 7. permit_self_only(仅可见自己) /// [XmlElement("visibility_type")] public long VisibilityType { get; set; } } } }