zrg
2024-08-16 18865d8bf24382e850e661dec6cca0e8b9dba6ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
 
namespace DingTalk.Api.Response
{
    /// <summary>
    /// OapiV2DepartmentGetResponse.
    /// </summary>
    public class OapiV2DepartmentGetResponse : DingTalkResponse
    {
        /// <summary>
        /// 返回码
        /// </summary>
        [XmlElement("errcode")]
        public long Errcode { get; set; }
 
        /// <summary>
        /// 错误信息
        /// </summary>
        [XmlElement("errmsg")]
        public string Errmsg { get; set; }
 
        /// <summary>
        /// 部门详情
        /// </summary>
        [XmlElement("result")]
        public DeptGetResponseDomain Result { get; set; }
 
    /// <summary>
/// SceneConfigDomain Data Structure.
/// </summary>
[Serializable]
 
public class SceneConfigDomain : TopObject
{
            /// <summary>
            /// 当前部门是否采用单独的配置。如果设置了false,则采用组织维度的配置
            /// </summary>
            [XmlElement("active")]
            public bool Active { get; set; }
    
            /// <summary>
            /// 是否在单聊框生效
            /// </summary>
            [XmlElement("chatbox_subtitle")]
            public bool ChatboxSubtitle { get; set; }
    
            /// <summary>
            /// 是否在查看组织架构生效
            /// </summary>
            [XmlElement("node_list")]
            public bool NodeList { get; set; }
    
            /// <summary>
            /// 是否在个人资料页生效
            /// </summary>
            [XmlElement("profile")]
            public bool Profile { get; set; }
    
            /// <summary>
            /// 是否在搜索生效
            /// </summary>
            [XmlElement("search")]
            public bool Search { get; set; }
}
 
    /// <summary>
/// DeptGetResponseDomain Data Structure.
/// </summary>
[Serializable]
 
public class DeptGetResponseDomain : TopObject
{
            /// <summary>
            /// 当群已经创建后,是否有新人加入部门会自动加入该群
            /// </summary>
            [XmlElement("auto_add_user")]
            public bool AutoAddUser { get; set; }
    
            /// <summary>
            /// 开启后,加入该部门的申请将默认同意
            /// </summary>
            [XmlElement("auto_approve_apply")]
            public bool AutoApproveApply { get; set; }
    
            /// <summary>
            /// 部门简介
            /// </summary>
            [XmlElement("brief")]
            public string Brief { get; set; }
    
            /// <summary>
            /// 部门编码
            /// </summary>
            [XmlElement("code")]
            public string Code { get; set; }
    
            /// <summary>
            /// 是否同步创建一个关联此部门的企业群, true表示是, false表示不是
            /// </summary>
            [XmlElement("create_dept_group")]
            public bool CreateDeptGroup { get; set; }
    
            /// <summary>
            /// 部门群ID
            /// </summary>
            [XmlElement("dept_group_chat_id")]
            public string DeptGroupChatId { get; set; }
    
            /// <summary>
            /// 部门ID
            /// </summary>
            [XmlElement("dept_id")]
            public long DeptId { get; set; }
    
            /// <summary>
            /// 部门的主管列表
            /// </summary>
            [XmlArray("dept_manager_userid_list")]
            [XmlArrayItem("string")]
            public List<string> DeptManagerUseridList { get; set; }
    
            /// <summary>
            /// 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的数组
            /// </summary>
            [XmlArray("dept_permits")]
            [XmlArrayItem("number")]
            public List<long> DeptPermits { get; set; }
    
            /// <summary>
            /// 开启后,允许员工加入部门
            /// </summary>
            [XmlElement("emp_apply_join_dept")]
            public bool EmpApplyJoinDept { get; set; }
    
            /// <summary>
            /// 扩展字段
            /// </summary>
            [XmlElement("extention")]
            public string Extention { get; set; }
    
            /// <summary>
            /// 部门是否来自关联组织
            /// </summary>
            [XmlElement("from_union_org")]
            public bool FromUnionOrg { get; set; }
    
            /// <summary>
            /// 部门群是否包含子部门
            /// </summary>
            [XmlElement("group_contain_sub_dept")]
            public bool GroupContainSubDept { get; set; }
    
            /// <summary>
            /// 是否隐藏部门, true表示隐藏, false表示显示
            /// </summary>
            [XmlElement("hide_dept")]
            public bool HideDept { get; set; }
    
            /// <summary>
            /// 部门隐藏的生效场景配置
            /// </summary>
            [XmlElement("hide_scene_config")]
            public SceneConfigDomain HideSceneConfig { get; set; }
    
            /// <summary>
            /// 部门名称
            /// </summary>
            [XmlElement("name")]
            public string Name { get; set; }
    
            /// <summary>
            /// 在父部门中的次序值
            /// </summary>
            [XmlElement("order")]
            public long Order { get; set; }
    
            /// <summary>
            /// 企业群群主ID
            /// </summary>
            [XmlElement("org_dept_owner")]
            public string OrgDeptOwner { get; set; }
    
            /// <summary>
            /// 是否本部门的员工仅可见员工自己, 为true时,本部门员工默认只能看到员工自己
            /// </summary>
            [XmlElement("outer_dept")]
            public bool OuterDept { get; set; }
    
            /// <summary>
            /// 本部门的员工仅可见员工自己为true时,可以配置额外可见部门
            /// </summary>
            [XmlArray("outer_permit_depts")]
            [XmlArrayItem("number")]
            public List<long> OuterPermitDepts { get; set; }
    
            /// <summary>
            /// 本部门的员工仅可见员工自己为true时,可以配置额外可见人员
            /// </summary>
            [XmlArray("outer_permit_users")]
            [XmlArrayItem("string")]
            public List<string> OuterPermitUsers { get; set; }
    
            /// <summary>
            /// 部门限制可见的生效场景配置
            /// </summary>
            [XmlElement("outer_scene_config")]
            public SceneConfigDomain OuterSceneConfig { get; set; }
    
            /// <summary>
            /// 父部门id,根部门为1
            /// </summary>
            [XmlElement("parent_id")]
            public long ParentId { get; set; }
    
            /// <summary>
            /// 部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射
            /// </summary>
            [XmlElement("source_identifier")]
            public string SourceIdentifier { get; set; }
    
            /// <summary>
            /// 教育行业部门类型,包括campus,period,grade,class.
            /// </summary>
            [XmlElement("tags")]
            public string Tags { get; set; }
    
            /// <summary>
            /// 联系方式(手机号码或座机号码)
            /// </summary>
            [XmlElement("telephone")]
            public string Telephone { get; set; }
    
            /// <summary>
            /// 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的数组
            /// </summary>
            [XmlArray("user_permits")]
            [XmlArrayItem("string")]
            public List<string> UserPermits { get; set; }
}
 
    }
}