using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// OapiAuthorizationRbacPermissionGetResponse.
///
public class OapiAuthorizationRbacPermissionGetResponse : DingTalkResponse
{
///
/// 服务端响应
///
[XmlElement("result")]
public DingOpenResultDomain Result { get; set; }
///
/// OpenContactScopeVoDomain Data Structure.
///
[Serializable]
public class OpenContactScopeVoDomain : TopObject
{
///
/// 部门id列表
///
[XmlArray("dept_ids")]
[XmlArrayItem("number")]
public List DeptIds { get; set; }
///
/// 被授权人所在的部门
///
[XmlElement("include_member_depts")]
public bool IncludeMemberDepts { get; set; }
///
/// 被授权人所管理的部门
///
[XmlElement("include_self_manage_depts")]
public bool IncludeSelfManageDepts { get; set; }
///
/// 员工列表
///
[XmlArray("userids")]
[XmlArrayItem("string")]
public List Userids { get; set; }
}
///
/// OpenConditionVoDomain Data Structure.
///
[Serializable]
public class OpenConditionVoDomain : TopObject
{
///
/// 通讯录范围约束
///
[XmlElement("open_contact_scope")]
public OpenContactScopeVoDomain OpenContactScope { get; set; }
}
///
/// OpenActionResultVoDomain Data Structure.
///
[Serializable]
public class OpenActionResultVoDomain : TopObject
{
///
/// actionId
///
[XmlElement("action_id")]
public string ActionId { get; set; }
///
/// 权限的范围约束
///
[XmlElement("open_condition")]
public OpenConditionVoDomain OpenCondition { get; set; }
}
///
/// PermitResultVoDomain Data Structure.
///
[Serializable]
public class PermitResultVoDomain : TopObject
{
///
/// action列表
///
[XmlArray("open_action_results")]
[XmlArrayItem("open_action_result_vo")]
public List OpenActionResults { get; set; }
///
/// 是否有权限
///
[XmlElement("permit")]
public bool Permit { get; set; }
}
///
/// DingOpenResultDomain Data Structure.
///
[Serializable]
public class DingOpenResultDomain : TopObject
{
///
/// errcode
///
[XmlElement("errcode")]
public long Errcode { get; set; }
///
/// errmsg
///
[XmlElement("errmsg")]
public string Errmsg { get; set; }
///
/// PermitResultVo
///
[XmlElement("result")]
public PermitResultVoDomain Result { get; set; }
///
/// 鉴权成功
///
[XmlElement("success")]
public bool Success { get; set; }
}
}
}