IotPermission.java
3.9 KB
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
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* topic权限控制对象 iot_permission
*
* @author 钟来
* @date 2022-08-26
*/
@ApiModel("topic权限控制")
public class IotPermission extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 动作(PUBLISH,SUBSCRIBE,ALL) */
@ApiModelProperty("动作(PUBLISH,SUBSCRIBE,ALL)")
private String activity;
/** 创建时间 */
@ApiModelProperty("创建时间")
private Integer create_time;
/** 描述 */
@ApiModelProperty("描述")
private String describe;
/** 主键 */
@ApiModelProperty("主键")
private Integer id;
/** 质量(ZERO,ONE,TWO,ZERO_ONE,ZERO_TWO,ONE_TWO,ALL) */
@ApiModelProperty("质量(ZERO,ONE,TWO,ZERO_ONE,ZERO_TWO,ONE_TWO,ALL)")
private String qos;
/** 是否保留(RETAINED,NOT_RETAINED,ALL) */
@ApiModelProperty("是否保留(RETAINED,NOT_RETAINED,ALL)")
private String retain;
/** 角色id */
@ApiModelProperty("角色id")
private Integer role_id;
/** 共享组 */
@ApiModelProperty("共享组")
private String shared_group;
/** 共享订阅(SHARED,NOT_SHARED,ALL) */
@ApiModelProperty("共享订阅(SHARED,NOT_SHARED,ALL)")
private String shared_subscription;
/** topic(同一角色有切只有一个) */
@ApiModelProperty("topic(同一角色有切只有一个)")
private String topic;
public void setActivity(String activity)
{
this.activity = activity;
}
public String getActivity()
{
return activity;
}
public void setCreate_time(Integer create_time)
{
this.create_time = create_time;
}
public Integer getCreate_time()
{
return create_time;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setId(Integer id)
{
this.id = id;
}
public Integer getId()
{
return id;
}
public void setQos(String qos)
{
this.qos = qos;
}
public String getQos()
{
return qos;
}
public void setRetain(String retain)
{
this.retain = retain;
}
public String getRetain()
{
return retain;
}
public void setRole_id(Integer role_id)
{
this.role_id = role_id;
}
public Integer getRole_id()
{
return role_id;
}
public void setShared_group(String shared_group)
{
this.shared_group = shared_group;
}
public String getShared_group()
{
return shared_group;
}
public void setShared_subscription(String shared_subscription)
{
this.shared_subscription = shared_subscription;
}
public String getShared_subscription()
{
return shared_subscription;
}
public void setTopic(String topic)
{
this.topic = topic;
}
public String getTopic()
{
return topic;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("activity", getActivity())
.append("create_time", getCreate_time())
.append("describe", getDescribe())
.append("id", getId())
.append("qos", getQos())
.append("retain", getRetain())
.append("role_id", getRole_id())
.append("shared_group", getShared_group())
.append("shared_subscription", getShared_subscription())
.append("topic", getTopic())
.toString();
}
}