JLChen
2021-05-17 a722e767f98042d5ef6259d2dde7854c925e4167
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
/**
 *  Auto created by ApiCreator Tool.
 *  SVN Rev: 79835, Author: 32725, Date: 2017-11-10 11:03:30 +0800 
 *  SHOULD NOT MODIFY!
 */
 
#ifndef _LC_OPENAPI_CLIENT_UserAuthList_H_
#define _LC_OPENAPI_CLIENT_UserAuthList_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
获取授权列表
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class UserAuthListRequest : public LCOpenApiRequest
    {
    public:
        class UserAuthListRequestData
        {
        public:
            UserAuthListRequestData();
            ~UserAuthListRequestData();
            
        public:
            /** [int]需要查的最大条数 */
            int count;
        public:
            /** [long]从该授权ID开始查询。若要从最新开始查,填-1 */
            int64 nextAuthId;
        public:
            /** 授权token(userToken或accessToken) */
            string token;
        public:
            /** [cstr]userAuthList */
            #define _STATIC_UserAuthListRequestData_method "userAuthList"
            string method;
 
        };
    public:
        UserAuthListRequest();
        ~UserAuthListRequest();
    public:
        virtual int build();
    public:
        UserAuthListRequestData data;
    };
 
    
    typedef typename UserAuthListRequest::UserAuthListRequestData UserAuthListRequestData;
 
 
    class UserAuthListResponse : public LCOpenApiResponse
    {
    public:
        class UserAuthListResponseData
        {
        public:
            UserAuthListResponseData();
            ~UserAuthListResponseData();
            
        public:
            /** define a list with struct of UserAuthListResponseData_AuthorizationsElement */
            class UserAuthListResponseData_AuthorizationsElement : public LCOpenApiBase
            {
            public:
                UserAuthListResponseData_AuthorizationsElement();
                ~UserAuthListResponseData_AuthorizationsElement();
            public:
                /** define a list with struct of UserAuthListResponseData_AuthorizationsElement_Role */
                class UserAuthListResponseData_AuthorizationsElement_Role : public LCOpenApiBase
                {
                public:
                    UserAuthListResponseData_AuthorizationsElement_Role();
                    ~UserAuthListResponseData_AuthorizationsElement_Role();
                public:
                    /** [long]角色Id */
                    int64 roleId;
                public:
                    /** 角色名称 */
                    string roleName;
                public:
                    /** 权限列表 */
                    string authFunctions;
                };
            public:
                UserAuthListResponseData_AuthorizationsElement_Role* role;
            public:
                /** [long]授权Id */
                int64 authId;
            public:
                /** 手机号 */
                string phoneNumber;
            public:
                /** 授权名称 */
                string authName;
            public:
                /** define a list with struct of UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement */
                class UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement : public LCOpenApiBase
                {
                public:
                    UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement();
                    ~UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement();
                public:
                    /** 通道ID */
                    string channelId;
                public:
                    /** 通道名称 */
                    string channelName;
                public:
                    /** 设备ID */
                    string deviceId;
                };
            public:
                LCOpenApiVector<UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement> authDevices;
            };
        public:
            LCOpenApiVector<UserAuthListResponseData_AuthorizationsElement> authorizations;
        public:
            /** 下一个授权ID */
            string nextAuthId;
 
        };
    public:
        UserAuthListResponse();
        ~UserAuthListResponse();
    public:
        virtual int parse();
    public:
        UserAuthListResponseData data;
    };
 
    
    typedef typename UserAuthListResponse::UserAuthListResponseData UserAuthListResponseData;
    typedef typename UserAuthListResponse::UserAuthListResponseData::UserAuthListResponseData_AuthorizationsElement UserAuthListResponseData_AuthorizationsElement;
    typedef typename UserAuthListResponse::UserAuthListResponseData::UserAuthListResponseData_AuthorizationsElement::UserAuthListResponseData_AuthorizationsElement_Role UserAuthListResponseData_AuthorizationsElement_Role;
    typedef typename UserAuthListResponse::UserAuthListResponseData::UserAuthListResponseData_AuthorizationsElement::UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement UserAuthListResponseData_AuthorizationsElement_AuthDevicesElement;
 
}
}
 
#endif