duhe
2024-10-25 948bc8f68b05abd2c942217159de1fe31075f8cd
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
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
 
namespace DingTalk.Api.Response
{
    /// <summary>
    /// OapiServiceaccountMenuGetResponse.
    /// </summary>
    public class OapiServiceaccountMenuGetResponse : DingTalkResponse
    {
        /// <summary>
        /// 错误码
        /// </summary>
        [XmlElement("errcode")]
        public long Errcode { get; set; }
 
        /// <summary>
        /// 错误信息
        /// </summary>
        [XmlElement("errmsg")]
        public string Errmsg { get; set; }
 
        /// <summary>
        /// 菜单
        /// </summary>
        [XmlElement("menu")]
        public MenuConfigDTODomain Menu { get; set; }
 
    /// <summary>
/// MenuSubButtonDTODomain Data Structure.
/// </summary>
[Serializable]
 
public class MenuSubButtonDTODomain : TopObject
{
            /// <summary>
            /// 菜单绑定的key值
            /// </summary>
            [XmlElement("key")]
            public string Key { get; set; }
    
            /// <summary>
            /// 素材id
            /// </summary>
            [XmlElement("media_id")]
            public string MediaId { get; set; }
    
            /// <summary>
            /// 名称
            /// </summary>
            [XmlElement("name")]
            public string Name { get; set; }
    
            /// <summary>
            /// 类型
            /// </summary>
            [XmlElement("type")]
            public string Type { get; set; }
    
            /// <summary>
            /// 菜单绑定的URL
            /// </summary>
            [XmlElement("url")]
            public string Url { get; set; }
}
 
    /// <summary>
/// MenuButtonDTODomain Data Structure.
/// </summary>
[Serializable]
 
public class MenuButtonDTODomain : TopObject
{
            /// <summary>
            /// 菜单绑定的key值
            /// </summary>
            [XmlElement("key")]
            public string Key { get; set; }
    
            /// <summary>
            /// 素材id
            /// </summary>
            [XmlElement("media_id")]
            public string MediaId { get; set; }
    
            /// <summary>
            /// 名称
            /// </summary>
            [XmlElement("name")]
            public string Name { get; set; }
    
            /// <summary>
            /// 子菜单按钮列表
            /// </summary>
            [XmlArray("sub_button")]
            [XmlArrayItem("menu_sub_button_d_t_o")]
            public List<MenuSubButtonDTODomain> SubButton { get; set; }
    
            /// <summary>
            /// 类型
            /// </summary>
            [XmlElement("type")]
            public string Type { get; set; }
    
            /// <summary>
            /// 菜单绑定的URL
            /// </summary>
            [XmlElement("url")]
            public string Url { get; set; }
}
 
    /// <summary>
/// MenuConfigDTODomain Data Structure.
/// </summary>
[Serializable]
 
public class MenuConfigDTODomain : TopObject
{
            /// <summary>
            /// 菜单按钮列表
            /// </summary>
            [XmlArray("button")]
            [XmlArrayItem("menu_button_d_t_o")]
            public List<MenuButtonDTODomain> Button { get; set; }
    
            /// <summary>
            /// 是否允许用户输入
            /// </summary>
            [XmlElement("enable_input")]
            public bool EnableInput { get; set; }
    
            /// <summary>
            /// 状态,0-正常,1-停用
            /// </summary>
            [XmlElement("status")]
            public long Status { get; set; }
}
 
    }
}