using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// OapiUnionCooperateInfoListResponse.
///
public class OapiUnionCooperateInfoListResponse : DingTalkResponse
{
///
/// 错误码
///
[XmlElement("errcode")]
public long Errcode { get; set; }
///
/// 错误文案
///
[XmlElement("errmsg")]
public string Errmsg { get; set; }
///
/// 加入/申请加入空间信息
///
[XmlArray("result")]
[XmlArrayItem("open_cooperate_union_vo")]
public List Result { get; set; }
///
/// 成功
///
[XmlElement("success")]
public bool Success { get; set; }
///
/// OpenCooperateUnionVoDomain Data Structure.
///
[Serializable]
public class OpenCooperateUnionVoDomain : TopObject
{
///
/// 加入企业认证等级0 未认证 1高级认证 2中级认证 3初级认证
///
[XmlElement("auth_level")]
public long AuthLevel { get; set; }
///
/// 挂载部门ID(在合作空间中的架构属性)
///
[XmlElement("dept_id")]
public long DeptId { get; set; }
///
/// 加入的部门列表(部门下的员工会全部加入)
///
[XmlArray("dept_ids")]
[XmlArrayItem("number")]
public List DeptIds { get; set; }
///
/// 挂载部门名称(在合作空间中的架构属性),不设置默认是加入企业的名称
///
[XmlElement("dept_name")]
public string DeptName { get; set; }
///
/// 加入企业的企业corpId
///
[XmlElement("union_corp_id")]
public string UnionCorpId { get; set; }
///
/// 加入企业的企业名称
///
[XmlElement("union_org_name")]
public string UnionOrgName { get; set; }
///
/// 加入的方式:1全部加入(不需要选择部门和员工) 2部分加入
///
[XmlElement("union_type")]
public long UnionType { get; set; }
///
/// 单独加入的员工(所在部门不需要加入的情况,直接选择的几个员工)
///
[XmlArray("userids")]
[XmlArrayItem("string")]
public List Userids { get; set; }
}
}
}