refactor 数据库字段注释

V0.5.x
jay 2023-05-30 14:27:15 +08:00
parent e335d709fc
commit 713e6d216a
49 changed files with 478 additions and 8 deletions

View File

@ -37,11 +37,6 @@
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>mysql</groupId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
@ -63,6 +58,11 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.github.biyanwen</groupId>
<artifactId>jpa-comment-spring-boot-starter</artifactId>
</dependency>
<dependency> <dependency>
<groupId>cc.iotkit</groupId> <groupId>cc.iotkit</groupId>
<artifactId>iot-common-core</artifactId> <artifactId>iot-common-core</artifactId>

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
@ -25,6 +26,7 @@ public class BaseEntity {
/** /**
* *
*/ */
@ApiModelProperty(value = "创建部门")
private Long createDept; private Long createDept;
/** /**
@ -32,6 +34,7 @@ public class BaseEntity {
*/ */
@CreatedBy @CreatedBy
@Column(name = "create_by", updatable = false) @Column(name = "create_by", updatable = false)
@ApiModelProperty(value = "创建者")
private Long createBy; private Long createBy;
/** /**
@ -39,6 +42,7 @@ public class BaseEntity {
*/ */
@CreatedDate @CreatedDate
@Column(name = "create_time", updatable = false) @Column(name = "create_time", updatable = false)
@ApiModelProperty(value = "创建时间")
private Date createTime; private Date createTime;
/** /**
@ -46,6 +50,7 @@ public class BaseEntity {
*/ */
@LastModifiedBy @LastModifiedBy
@Column(name = "update_by") @Column(name = "update_by")
@ApiModelProperty(value = "更新者")
private Long updateBy; private Long updateBy;
/** /**
@ -53,6 +58,7 @@ public class BaseEntity {
*/ */
@LastModifiedDate @LastModifiedDate
@Column(name = "update_time") @Column(name = "update_time")
@ApiModelProperty(value = "更新时间")
private Date updateTime; private Date updateTime;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -18,8 +19,11 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
public class DeviceIdGroup { public class DeviceIdGroup {
@ApiModelProperty(value = "设备组id")
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
@ApiModelProperty(value = "组名称")
private String name; private String name;
} }

View File

@ -3,6 +3,8 @@ package cc.iotkit.data.model;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@Data @Data
@ -11,46 +13,55 @@ import lombok.Data;
public class TbAlertConfig { public class TbAlertConfig {
@Id @Id
@ApiModelProperty(value = "告警配置id")
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "配置所属用户")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "告警名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "告警严重度")
private String level; private String level;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "关联规则引擎ID")
private String ruleInfoId; private String ruleInfoId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "关联消息转发模板ID")
private String messageTemplateId; private String messageTemplateId;
/** /**
* *
*/ */
@ApiModelProperty(value = "描述")
private String description; private String description;
/** /**
* *
*/ */
@ApiModelProperty(value = "是否启用")
private Boolean enable; private Boolean enable;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -3,44 +3,55 @@ package cc.iotkit.data.model;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@Data @Data
@Entity @Entity
@ApiModel(value = "告警记录")
@Table(name = "alert_record") @Table(name = "alert_record")
public class TbAlertRecord { public class TbAlertRecord {
@Id @Id
@ApiModelProperty(value = "告警记录id")
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "配置所属用户")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "告警名称")
private String name; private String name;
/** /**
* 1-5 * 1-5
*/ */
@ApiModelProperty(value = "告警严重度1-5")
private String level; private String level;
/** /**
* *
*/ */
@ApiModelProperty(value = "告警时间")
private Long alertTime; private Long alertTime;
/** /**
* *
*/ */
@ApiModelProperty(value = "告警详情")
private String details; private String details;
/** /**
* *
*/ */
@ApiModelProperty(value = "是否已读")
private Boolean read; private Boolean read;
} }

View File

@ -9,9 +9,11 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
@Data @Data
@ -19,11 +21,14 @@ import javax.persistence.Table;
@Table(name = "category") @Table(name = "category")
public class TbCategory { public class TbCategory {
@javax.persistence.Id @ApiModelProperty(value = "分类id")
@Id
private String id; private String id;
@ApiModelProperty(value = "分类名称")
private String name; private String name;
@ApiModelProperty(value = "分类描述")
private Long createAt; private Long createAt;

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -16,13 +17,18 @@ import javax.persistence.Table;
@Table(name = "channel") @Table(name = "channel")
public class TbChannel { public class TbChannel {
@Id @Id
@ApiModelProperty(value = "通道id")
private String id; private String id;
@ApiModelProperty(value = "通道名称")
private String code; private String code;
@ApiModelProperty(value = "标题")
private String title; private String title;
@ApiModelProperty(value = "图标")
private String icon; private String icon;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -14,15 +16,21 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "channel_config") @Table(name = "channel_config")
@ApiModel(value = "通道配置")
public class TbChannelConfig { public class TbChannelConfig {
@Id @Id
@ApiModelProperty(value = "通道配置id")
private String id; private String id;
@ApiModelProperty(value = "通道id")
private String channelId; private String channelId;
@ApiModelProperty(value = "通道配置名称")
private String title; private String title;
@ApiModelProperty(value = "通道配置参数")
private String param; private String param;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -14,15 +16,21 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "channel_template") @Table(name = "channel_template")
@ApiModel(value = "通道模板")
public class TbChannelTemplate { public class TbChannelTemplate {
@Id @Id
@ApiModelProperty(value = "通道模板id")
private String id; private String id;
@ApiModelProperty(value = "通道配置id")
private String channelConfigId; private String channelConfigId;
@ApiModelProperty(value = "通道模板名称")
private String title; private String title;
@ApiModelProperty(value = "通道模板内容")
private String content; private String content;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -9,27 +11,34 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@ApiModel(value = "设备配置")
@Table(name = "device_config") @Table(name = "device_config")
public class TbDeviceConfig { public class TbDeviceConfig {
@Id @Id
@ApiModelProperty(value = "设备配置id")
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
/** /**
* key * key
*/ */
@ApiModelProperty(value = "产品key")
private String productKey; private String productKey;
@ApiModelProperty(value = "设备名称")
private String deviceName; private String deviceName;
/** /**
* json * json
*/ */
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "设备配置json内容")
private String config; private String config;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -18,31 +20,38 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_group") @Table(name = "device_group")
@ApiModel(value = "设备组")
public class TbDeviceGroup { public class TbDeviceGroup {
@Id @Id
@ApiModelProperty(value = "设备组id")
private String id; private String id;
@ApiModelProperty(value = "设备组名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "所属用户")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "分组说明")
private String remark; private String remark;
/** /**
* *
*/ */
@ApiModelProperty(value = "设备数量")
private int deviceQty; private int deviceQty;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建时间")
private long createAt; private long createAt;
} }

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -16,10 +17,13 @@ import javax.persistence.Table;
public class TbDeviceGroupMapping { public class TbDeviceGroupMapping {
@Id @Id
@ApiModelProperty(value = "设备组映射id")
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
@ApiModelProperty(value = "设备组id")
private String groupId; private String groupId;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -8,31 +10,43 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_info") @Table(name = "device_info")
@ApiModel(value = "设备信息")
public class TbDeviceInfo { public class TbDeviceInfo {
@javax.persistence.Id @javax.persistence.Id
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
@ApiModelProperty(value = "产品key")
private String productKey; private String productKey;
@ApiModelProperty(value = "设备名称")
private String deviceName; private String deviceName;
@ApiModelProperty(value = "设备类型")
private String model; private String model;
@ApiModelProperty(value = "设备描述")
private String secret; private String secret;
@ApiModelProperty(value = "父级id")
private String parentId; private String parentId;
@ApiModelProperty(value = "用户id")
private String uid; private String uid;
@ApiModelProperty(value = "设备状态")
private String state; private String state;
@ApiModelProperty(value = "设备在线时间")
private Long onlineTime; private Long onlineTime;
@ApiModelProperty(value = "设备离线时间")
private Long offlineTime; private Long offlineTime;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -18,13 +20,17 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_sub_user") @Table(name = "device_sub_user")
@ApiModel(value = "设备用户映射")
public class TbDeviceSubUser { public class TbDeviceSubUser {
@Id @Id
@ApiModelProperty(value = "id")
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
@ApiModelProperty(value = "设备用户id")
private String uid; private String uid;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -24,26 +26,32 @@ import javax.persistence.Table;
@AllArgsConstructor @AllArgsConstructor
@Entity @Entity
@Table(name = "device_tag") @Table(name = "device_tag")
@ApiModel(value = "设备标签")
public class TbDeviceTag { public class TbDeviceTag {
@Id @Id
@ApiModelProperty(value = "id")
private String id; private String id;
@ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
/** /**
* *
*/ */
@ApiModelProperty(value = "标签码")
private String code; private String code;
/** /**
* *
*/ */
@ApiModelProperty(value = "标签名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "标签值")
private String value; private String value;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -9,39 +11,47 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "home") @Table(name = "home")
@ApiModel(value = "家庭信息")
public class TbHome { public class TbHome {
@Id @Id
@ApiModelProperty(value = "家庭id")
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "家庭名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "家庭地址")
private String address; private String address;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "关联用户id")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "空间数量")
private Integer spaceNum; private Integer spaceNum;
/** /**
* *
*/ */
@ApiModelProperty(value = "设备数量")
private Integer deviceNum; private Integer deviceNum;
/** /**
* 使 * 使
*/ */
@ApiModelProperty(value = "是否为用户当前使用的家庭")
private Boolean current; private Boolean current;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -21,16 +22,22 @@ import javax.persistence.Table;
public class TbOauthClient { public class TbOauthClient {
@Id @Id
@ApiModelProperty(value = "id")
private String id; private String id;
@ApiModelProperty(value = "客户端id")
private String clientId; private String clientId;
@ApiModelProperty(value = "客户端名称")
private String name; private String name;
@ApiModelProperty(value = "客户端密钥")
private String clientSecret; private String clientSecret;
@ApiModelProperty(value = "允许访问的url")
private String allowUrl; private String allowUrl;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -17,30 +19,39 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@ApiModel(value = "产品")
@Table(name = "product") @Table(name = "product")
public class TbProduct { public class TbProduct {
@Id @Id
@ApiModelProperty(value = "产品id")
private String id; private String id;
@ApiModelProperty(value = "产品名称")
private String name; private String name;
@ApiModelProperty(value = "品类")
private String category; private String category;
@ApiModelProperty(value = "节点类型")
private Integer nodeType; private Integer nodeType;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "用户ID")
private String uid; private String uid;
@ApiModelProperty(value = "图片")
private String img; private String img;
/** /**
* ,true/false * ,true/false
*/ */
@ApiModelProperty(value = "是否透传,true/false")
private String transparent; private String transparent;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -1,5 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -9,30 +11,42 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@ApiModel(value = "产品型号")
@Table(name = "product_model") @Table(name = "product_model")
public class TbProductModel { public class TbProductModel {
@Id @Id
@ApiModelProperty(value = "型号id")
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "型号")
private String model; private String model;
@ApiModelProperty(value = "名称")
private String name; private String name;
@ApiModelProperty(value = "产品Key")
private String productKey; private String productKey;
@ApiModelProperty(value = "脚本类型")
private String type; private String type;
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "脚本内容")
private String script; private String script;
/** /**
* *
*/ */
private String state; @ApiModelProperty(value = "脚本状态")
private String state;
@ApiModelProperty(value = "修改时间")
private Long modifyAt; private Long modifyAt;
} }

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -18,29 +19,49 @@ public class TbProtocolComponent {
/** /**
* id * id
*/ */
@ApiModelProperty(value = "所属性用户id")
private String uid; private String uid;
@ApiModelProperty(value = "组件名称")
private String name; private String name;
@ApiModelProperty(value = "组件类型")
private String type; private String type;
@ApiModelProperty(value = "通讯协议")
private String protocol; private String protocol;
@ApiModelProperty(value = "jar包")
private String jarFile; private String jarFile;
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
private String config; private String config;
@ApiModelProperty(value = "转换脚本")
private String converter; private String converter;
@ApiModelProperty(value = "转换器类型")
private String converType; private String converType;
@ApiModelProperty(value = "运行状态")
private String state; private String state;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
@ApiModelProperty(value = "通讯脚本语言类型")
private String scriptTyp; private String scriptTyp;
@ApiModelProperty(value = "脚本内容")
@Column(columnDefinition = "text")//设置映射为text类型 @Column(columnDefinition = "text")//设置映射为text类型
private String script; private String script;

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -27,20 +28,25 @@ public class TbProtocolConverter {
/** /**
* id * id
*/ */
@ApiModelProperty(value = "所属性用户id")
private String uid; private String uid;
@ApiModelProperty(value = "转换器名称")
private String name; private String name;
@Column(name = "[desc]") @Column(name = "[desc]")
@ApiModelProperty(value = "描述")
private String desc; private String desc;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
@ApiModelProperty(value = "转换脚本类型")
private String typ; private String typ;
// 脚本内容 // 脚本内容
@Column(columnDefinition = "text")//设置映射为text类型 @Column(columnDefinition = "text")//设置映射为text类型
@ApiModelProperty(value = "脚本内容")
private String script; private String script;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -19,31 +21,42 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "rule_info") @Table(name = "rule_info")
@ApiModel(value = "规则")
public class TbRuleInfo { public class TbRuleInfo {
@Id @Id
@ApiModelProperty(value = "规则id")
private String id; private String id;
@ApiModelProperty(value = "规则名称")
private String name; private String name;
@ApiModelProperty(value = "规则类型")
private String type; private String type;
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "监听器")
private String listeners; private String listeners;
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "过滤器")
private String filters; private String filters;
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "动作")
private String actions; private String actions;
@ApiModelProperty(value = "用户id")
private String uid; private String uid;
@ApiModelProperty(value = "状态")
private String state; private String state;
@Column(name = "[desc]") @Column(name = "[desc]")
@ApiModelProperty(value = "描述")
private String desc; private String desc;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -17,32 +19,39 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@ApiModel(value = "空间")
@Table(name = "space") @Table(name = "space")
public class TbSpace { public class TbSpace {
@Id @Id
@ApiModelProperty(value = "空间id")
private String id; private String id;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "关联家庭id")
private String homeId; private String homeId;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "关联用户id")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "空间名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "设备数量")
private Integer deviceNum; private Integer deviceNum;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,8 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -18,6 +20,7 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "space_device") @Table(name = "space_device")
@ApiModel(value = "空间设备")
public class TbSpaceDevice { public class TbSpaceDevice {
@Id @Id
@ -26,46 +29,55 @@ public class TbSpaceDevice {
/** /**
* id * id
*/ */
@ApiModelProperty(value = "关联用户id")
private String uid; private String uid;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "分享的用户id")
private String sharedUid; private String sharedUid;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "空间中的设备id")
private String deviceId; private String deviceId;
/** /**
* *
*/ */
@ApiModelProperty(value = "空间中的设备名称")
private String name; private String name;
/** /**
* Id * Id
*/ */
@ApiModelProperty(value = "所属家庭Id")
private String homeId; private String homeId;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "空间id")
private String spaceId; private String spaceId;
/** /**
* *
*/ */
@ApiModelProperty(value = "添加时间")
private Long addAt; private Long addAt;
/** /**
* 使 * 使
*/ */
@ApiModelProperty(value = "使用时间")
private Long useAt; private Long useAt;
/** /**
* *
*/ */
@ApiModelProperty(value = "是否收藏")
private Boolean collect; private Boolean collect;
} }

View File

@ -4,6 +4,8 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysConfig; import cc.iotkit.model.system.SysConfig;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -31,36 +33,43 @@ public class TbSysConfig extends BaseEntity {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ApiModelProperty(value = "参数主键")
private Long configId; private Long configId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "参数名称")
private String configName; private String configName;
/** /**
* *
*/ */
@ApiModelProperty(value = "参数键名")
private String configKey; private String configKey;
/** /**
* *
*/ */
@ApiModelProperty(value = "参数键值")
private String configValue; private String configValue;
/** /**
* Y N * Y N
*/ */
@ApiModelProperty(value = "系统内置Y是 N否")
private String configType; private String configType;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -4,6 +4,8 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysConfig; import cc.iotkit.model.system.SysConfig;
import cc.iotkit.model.system.SysDept; import cc.iotkit.model.system.SysDept;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -22,6 +24,7 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_dept") @Table(name = "sys_dept")
@AutoMapper(target = SysDept.class) @AutoMapper(target = SysDept.class)
@ApiModel(value = "部门表")
public class TbSysDept extends BaseEntity { public class TbSysDept extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -29,56 +32,67 @@ public class TbSysDept extends BaseEntity {
* ID * ID
*/ */
@Id @Id
@ApiModelProperty(value = "部门ID")
private Long deptId; private Long deptId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户ID")
private String tenantId; private String tenantId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "父部门ID")
private Long parentId; private Long parentId;
/** /**
* *
*/ */
@ApiModelProperty(value = "部门名称")
private String deptName; private String deptName;
/** /**
* *
*/ */
@ApiModelProperty(value = "显示顺序")
private Integer orderNum; private Integer orderNum;
/** /**
* *
*/ */
@ApiModelProperty(value = "负责人")
private String leader; private String leader;
/** /**
* *
*/ */
@ApiModelProperty(value = "联系电话")
private String phone; private String phone;
/** /**
* *
*/ */
@ApiModelProperty(value = "邮箱")
private String email; private String email;
/** /**
* :0,1 * :0,1
*/ */
@ApiModelProperty(value = "部门状态:0正常,1停用")
private String status; private String status;
/** /**
* 0 2 * 0 2
*/ */
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
/** /**
* *
*/ */
@ApiModelProperty(value = "祖级列表")
private String ancestors; private String ancestors;
} }

View File

@ -2,6 +2,8 @@ package cc.iotkit.data.model;
import cc.iotkit.model.system.SysDictData; import cc.iotkit.model.system.SysDictData;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -19,62 +21,74 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_dict_data") @Table(name = "sys_dict_data")
@AutoMapper(target = SysDictData.class) @AutoMapper(target = SysDictData.class)
@ApiModel(value = "字典数据表")
public class TbSysDictData extends BaseEntity { public class TbSysDictData extends BaseEntity {
/** /**
* *
*/ */
@Id @Id
@ApiModelProperty(value = "字典编码")
private Long dictCode; private Long dictCode;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典排序")
private Integer dictSort; private Integer dictSort;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典标签")
private String dictLabel; private String dictLabel;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典键值")
private String dictValue; private String dictValue;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典类型")
private String dictType; private String dictType;
/** /**
* *
*/ */
@ApiModelProperty(value = "样式属性(其他样式扩展)")
private String cssClass; private String cssClass;
/** /**
* *
*/ */
@ApiModelProperty(value = "表格字典样式")
private String listClass; private String listClass;
/** /**
* Y N * Y N
*/ */
@ApiModelProperty(value = "是否默认Y是 N否")
private String isDefault; private String isDefault;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "状态0正常 1停用")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -4,6 +4,8 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysDictData; import cc.iotkit.model.system.SysDictData;
import cc.iotkit.model.system.SysDictType; import cc.iotkit.model.system.SysDictType;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -22,37 +24,44 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_dict_type") @Table(name = "sys_dict_type")
@AutoMapper(target = SysDictType.class) @AutoMapper(target = SysDictType.class)
@ApiModel(value = "字典类型表")
public class TbSysDictType extends BaseEntity { public class TbSysDictType extends BaseEntity {
/** /**
* *
*/ */
@Id @Id
@ApiModelProperty(value = "字典主键")
private Long dictId; private Long dictId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典名称")
private String dictName; private String dictName;
/** /**
* *
*/ */
@ApiModelProperty(value = "字典类型")
private String dictType; private String dictType;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "状态0正常 1停用")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -4,6 +4,7 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysDictData; import cc.iotkit.model.system.SysDictData;
import cc.iotkit.model.system.SysLogininfor; import cc.iotkit.model.system.SysLogininfor;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -26,51 +27,61 @@ public class TbSysLogininfor extends BaseEntity {
* ID * ID
*/ */
@Id @Id
@ApiModelProperty(value = "ID")
private Long infoId; private Long infoId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户账号")
private String userName; private String userName;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "登录状态 0成功 1失败")
private String status; private String status;
/** /**
* IP * IP
*/ */
@ApiModelProperty(value = "登录IP地址")
private String ipaddr; private String ipaddr;
/** /**
* *
*/ */
@ApiModelProperty(value = "登录地点")
private String loginLocation; private String loginLocation;
/** /**
* *
*/ */
@ApiModelProperty(value = "浏览器类型")
private String browser; private String browser;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作系统")
private String os; private String os;
/** /**
* *
*/ */
@ApiModelProperty(value = "提示消息")
private String msg; private String msg;
/** /**
* 访 * 访
*/ */
@ApiModelProperty(value = "访问时间")
private Date loginTime; private Date loginTime;
} }

View File

@ -2,6 +2,8 @@ package cc.iotkit.data.model;
import cc.iotkit.model.system.SysMenu; import cc.iotkit.model.system.SysMenu;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
@ -19,6 +21,7 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "sys_menu") @Table(name = "sys_menu")
@AutoMapper(target = SysMenu.class) @AutoMapper(target = SysMenu.class)
@ApiModel(value = "菜单权限表")
public class TbSysMenu extends BaseEntity { public class TbSysMenu extends BaseEntity {
/** /**
@ -28,78 +31,93 @@ public class TbSysMenu extends BaseEntity {
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@Column(name = "menu_id") @Column(name = "menu_id")
@ApiModelProperty(value = "菜单ID")
private Long menuId; private Long menuId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "父菜单ID")
@Column(name = "parent_id") @Column(name = "parent_id")
private Long parentId; private Long parentId;
/** /**
* *
*/ */
@ApiModelProperty(value = "菜单名称")
@Column(name = "menu_name") @Column(name = "menu_name")
private String menuName; private String menuName;
/** /**
* *
*/ */
@ApiModelProperty(value = "显示顺序")
private Integer orderNum; private Integer orderNum;
/** /**
* *
*/ */
@ApiModelProperty(value = "路由地址")
private String path; private String path;
/** /**
* *
*/ */
@ApiModelProperty(value = "组件路径")
private String component; private String component;
/** /**
* *
*/ */
@ApiModelProperty(value = "路由参数")
private String queryParam; private String queryParam;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "是否为外链0是 1否")
private String isFrame; private String isFrame;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "是否缓存0缓存 1不缓存")
private String isCache; private String isCache;
/** /**
* M C F * M C F
*/ */
@ApiModelProperty(value = "类型M目录 C菜单 F按钮")
private String menuType; private String menuType;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "显示状态0显示 1隐藏")
private String visible; private String visible;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "菜单状态0正常 1停用")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "权限字符串")
private String perms; private String perms;
/** /**
* *
*/ */
@ApiModelProperty(value = "菜单图标")
private String icon; private String icon;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -4,6 +4,8 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysLogininfor; import cc.iotkit.model.system.SysLogininfor;
import cc.iotkit.model.system.SysNotice; import cc.iotkit.model.system.SysNotice;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -21,42 +23,50 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_notice") @Table(name = "sys_notice")
@AutoMapper(target = SysNotice.class) @AutoMapper(target = SysNotice.class)
@ApiModel(value = "通知公告表")
public class TbSysNotice extends BaseEntity { public class TbSysNotice extends BaseEntity {
/** /**
* ID * ID
*/ */
@Id @Id
@ApiModelProperty(value = "公告ID")
private Long noticeId; private Long noticeId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "公告标题")
private String noticeTitle; private String noticeTitle;
/** /**
* 1 2 * 1 2
*/ */
@ApiModelProperty(value = "公告类型1通知 2公告")
private String noticeType; private String noticeType;
/** /**
* *
*/ */
@ApiModelProperty(value = "公告内容")
private String noticeContent; private String noticeContent;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "公告状态0正常 1关闭")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -3,6 +3,8 @@ package cc.iotkit.data.model;
import cc.iotkit.model.system.SysLogininfor; import cc.iotkit.model.system.SysLogininfor;
import cc.iotkit.model.system.SysOperLog; import cc.iotkit.model.system.SysOperLog;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -20,6 +22,7 @@ import java.util.Date;
@Entity @Entity
@Table(name = "oper_log") @Table(name = "oper_log")
@AutoMapper(target = SysOperLog.class) @AutoMapper(target = SysOperLog.class)
@ApiModel(value = "操作日志记录表")
public class TbSysOperLog implements Serializable { public class TbSysOperLog implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -27,91 +30,109 @@ public class TbSysOperLog implements Serializable {
* *
*/ */
@Id @Id
@ApiModelProperty(value = "日志主键")
private Long operId; private Long operId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作模块")
private String title; private String title;
/** /**
* 0 1 2 3 * 0 1 2 3
*/ */
@ApiModelProperty(value = "业务类型0其它 1新增 2修改 3删除")
private Integer businessType; private Integer businessType;
/** /**
* *
*/ */
@ApiModelProperty(value = "请求方法")
private String method; private String method;
/** /**
* *
*/ */
@ApiModelProperty(value = "请求方式")
private String requestMethod; private String requestMethod;
/** /**
* 0 1 2 * 0 1 2
*/ */
@ApiModelProperty(value = "操作类别0其它 1后台用户 2手机端用户")
private Integer operatorType; private Integer operatorType;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作人员")
private String operName; private String operName;
/** /**
* *
*/ */
@ApiModelProperty(value = "部门名称")
private String deptName; private String deptName;
/** /**
* url * url
*/ */
@ApiModelProperty(value = "请求url")
private String operUrl; private String operUrl;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作地址")
private String operIp; private String operIp;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作地点")
private String operLocation; private String operLocation;
/** /**
* *
*/ */
@ApiModelProperty(value = "请求参数")
private String operParam; private String operParam;
/** /**
* *
*/ */
@ApiModelProperty(value = "返回参数")
private String jsonResult; private String jsonResult;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "操作状态0正常 1异常")
private Integer status; private Integer status;
/** /**
* *
*/ */
@ApiModelProperty(value = "错误消息")
private String errorMsg; private String errorMsg;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作时间")
private Date operTime; private Date operTime;
/** /**
* *
*/ */
@ApiModelProperty(value = "消耗时间")
private Long costTime; private Long costTime;
} }

View File

@ -1,6 +1,8 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -17,42 +19,50 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Entity @Entity
@Table(name = "sys_oss") @Table(name = "sys_oss")
@ApiModel(value = "OSS对象存储对象")
public class TbSysOss extends BaseEntity { public class TbSysOss extends BaseEntity {
/** /**
* *
*/ */
@Id @Id
@ApiModelProperty(value = "对象存储主键")
private Long ossId; private Long ossId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "文件名")
private String fileName; private String fileName;
/** /**
* *
*/ */
@ApiModelProperty(value = "原名")
private String originalName; private String originalName;
/** /**
* *
*/ */
@ApiModelProperty(value = "文件后缀名")
private String fileSuffix; private String fileSuffix;
/** /**
* URL * URL
*/ */
@ApiModelProperty(value = "URL地址")
private String url; private String url;
/** /**
* *
*/ */
@ApiModelProperty(value = "服务商")
private String service; private String service;
} }

View File

@ -1,6 +1,8 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -17,81 +19,97 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Entity @Entity
@Table(name = "sys_oss_config") @Table(name = "sys_oss_config")
@ApiModel(value = "对象存储配置对象")
public class TbSysOssConfig extends BaseEntity { public class TbSysOssConfig extends BaseEntity {
/** /**
* *
*/ */
@Id @Id
@ApiModelProperty(value = "主建")
private Long ossConfigId; private Long ossConfigId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* key * key
*/ */
@ApiModelProperty(value = "配置key")
private String configKey; private String configKey;
/** /**
* accessKey * accessKey
*/ */
@ApiModelProperty(value = "accessKey")
private String accessKey; private String accessKey;
/** /**
* *
*/ */
@ApiModelProperty(value = "秘钥")
private String secretKey; private String secretKey;
/** /**
* *
*/ */
@ApiModelProperty(value = "桶名称")
private String bucketName; private String bucketName;
/** /**
* *
*/ */
@ApiModelProperty(value = "前缀")
private String prefix; private String prefix;
/** /**
* 访 * 访
*/ */
@ApiModelProperty(value = "访问站点")
private String endpoint; private String endpoint;
/** /**
* *
*/ */
@ApiModelProperty(value = "自定义域名")
private String domain; private String domain;
/** /**
* https0 1 * https0 1
*/ */
@ApiModelProperty(value = "是否https0否 1是")
private String isHttps; private String isHttps;
/** /**
* *
*/ */
@ApiModelProperty(value = "域")
private String region; private String region;
/** /**
* 0=,1= * 0=,1=
*/ */
@ApiModelProperty(value = "是否默认0=是,1=否)")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "扩展字段")
private String ext1; private String ext1;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
/** /**
* (0private 1public 2custom) * (0private 1public 2custom)
*/ */
@ApiModelProperty(value = "桶权限类型(0private 1public 2custom)")
private String accessPolicy; private String accessPolicy;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -24,36 +25,43 @@ public class TbSysPost extends BaseEntity {
* *
*/ */
@Id @Id
@ApiModelProperty(value = "岗位序号")
private Long postId; private Long postId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "岗位编码")
private String postCode; private String postCode;
/** /**
* *
*/ */
@ApiModelProperty(value = "岗位名称")
private String postName; private String postName;
/** /**
* *
*/ */
@ApiModelProperty(value = "岗位排序")
private Integer postSort; private Integer postSort;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "状态0正常 1停用")
private String status; private String status;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -26,56 +27,67 @@ public class TbSysRole extends BaseEntity {
* ID * ID
*/ */
@Id @Id
@ApiModelProperty(value = "角色ID")
private Long roleId; private Long roleId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "角色名称")
private String roleName; private String roleName;
/** /**
* *
*/ */
@ApiModelProperty(value = "角色权限")
private String roleKey; private String roleKey;
/** /**
* *
*/ */
@ApiModelProperty(value = "角色排序")
private Integer roleSort; private Integer roleSort;
/** /**
* 12345 * 12345
*/ */
@ApiModelProperty(value = "数据范围1所有数据权限2自定义数据权限3本部门数据权限4本部门及以下数据权限5仅本人数据权限")
private String dataScope; private String dataScope;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "菜单树选择项是否关联显示( 0父子不互相关联显示 1父子互相关联显示")
private Boolean menuCheckStrictly; private Boolean menuCheckStrictly;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "部门树选择项是否关联显示0父子不互相关联显示 1父子互相关联显示 ")
private Boolean deptCheckStrictly; private Boolean deptCheckStrictly;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "角色状态0正常 1停用")
private String status; private String status;
/** /**
* 0 2 * 0 2
*/ */
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
public TbSysRole(Long roleId) { public TbSysRole(Long roleId) {

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -18,16 +19,19 @@ import javax.persistence.Table;
public class TbSysRoleDept { public class TbSysRoleDept {
@Id @Id
@ApiModelProperty(value = "主键")
private Long id; private Long id;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "角色ID")
private Long roleId; private Long roleId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "部门ID")
private Long deptId; private Long deptId;
} }

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -18,16 +19,19 @@ import javax.persistence.Table;
public class TbSysRoleMenu { public class TbSysRoleMenu {
@Id @Id
@ApiModelProperty(value = "主键")
private Long id; private Long id;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "角色ID")
private Long roleId; private Long roleId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "菜单ID")
private Long menuId; private Long menuId;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -25,76 +26,91 @@ public class TbSysTenant extends BaseEntity {
* id * id
*/ */
@Id @Id
@ApiModelProperty(value = "id")
private Long id; private Long id;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* *
*/ */
@ApiModelProperty(value = "联系人")
private String contactUserName; private String contactUserName;
/** /**
* *
*/ */
@ApiModelProperty(value = "联系电话")
private String contactPhone; private String contactPhone;
/** /**
* *
*/ */
@ApiModelProperty(value = "企业名称")
private String companyName; private String companyName;
/** /**
* *
*/ */
@ApiModelProperty(value = "统一社会信用代码")
private String licenseNumber; private String licenseNumber;
/** /**
* *
*/ */
@ApiModelProperty(value = "地址")
private String address; private String address;
/** /**
* *
*/ */
@ApiModelProperty(value = "域名")
private String domain; private String domain;
/** /**
* *
*/ */
@ApiModelProperty(value = "企业简介")
private String intro; private String intro;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户套餐编号")
private Long packageId; private Long packageId;
/** /**
* *
*/ */
@ApiModelProperty(value = "过期时间")
private Date expireTime; private Date expireTime;
/** /**
* -1 * -1
*/ */
@ApiModelProperty(value = "用户数量(-1不限制")
private Long accountCount; private Long accountCount;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "租户状态0正常 1停用")
private String status; private String status;
/** /**
* 0 2 * 0 2
*/ */
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -24,30 +25,37 @@ public class TbSysTenantPackage extends BaseEntity {
* id * id
*/ */
@Id @Id
@ApiModelProperty(value = "租户套餐id")
private Long packageId; private Long packageId;
/** /**
* *
*/ */
@ApiModelProperty(value = "套餐名称")
private String packageName; private String packageName;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "关联菜单id")
private String menuIds; private String menuIds;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "菜单树选择项是否关联显示( 0父子不互相关联显示 1父子互相关联显示")
private Boolean menuCheckStrictly; private Boolean menuCheckStrictly;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "状态0正常 1停用")
private String status; private String status;
/** /**
* 0 2 * 0 2
*/ */
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -27,81 +28,97 @@ public class TbSysUser extends BaseEntity {
* ID * ID
*/ */
@Id @Id
@ApiModelProperty(value = "用户ID")
private Long userId; private Long userId;
/** /**
* *
*/ */
@ApiModelProperty(value = "租户编号")
private String tenantId; private String tenantId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "部门ID")
private Long deptId; private Long deptId;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户账号")
private String userName; private String userName;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户昵称")
private String nickName; private String nickName;
/** /**
* sys_user * sys_user
*/ */
@ApiModelProperty(value = "用户类型sys_user系统用户")
private String userType; private String userType;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户邮箱")
private String email; private String email;
/** /**
* *
*/ */
@ApiModelProperty(value = "手机号码")
private String phonenumber; private String phonenumber;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户性别")
private String sex; private String sex;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户头像")
private Long avatar; private Long avatar;
/** /**
* *
*/ */
@ApiModelProperty(value = "密码")
private String password; private String password;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "帐号状态0正常 1停用")
private String status; private String status;
/** /**
* 0 2 * 0 2
*/ */
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
/** /**
* IP * IP
*/ */
@ApiModelProperty(value = "最后登录IP")
private String loginIp; private String loginIp;
/** /**
* *
*/ */
@ApiModelProperty(value = "最后登录时间")
private Date loginDate; private Date loginDate;
/** /**
* *
*/ */
@ApiModelProperty(value = "备注")
private String remark; private String remark;
public TbSysUser(Long userId) { public TbSysUser(Long userId) {

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -24,11 +25,13 @@ public class TbSysUserPost extends BaseEntity {
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "用户ID")
private Long userId; private Long userId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "岗位ID")
private Long postId; private Long postId;
} }

View File

@ -1,6 +1,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.data.model.BaseEntity; import cc.iotkit.data.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -24,11 +25,13 @@ public class TbSysUserRole extends BaseEntity {
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "用户ID")
private Long userId; private Long userId;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value = "角色ID")
private Long roleId; private Long roleId;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -22,13 +23,16 @@ import javax.persistence.Table;
public class TbTaskInfo { public class TbTaskInfo {
@Id @Id
@ApiModelProperty(value = "主键")
private String id; private String id;
@ApiModelProperty(value = "任务名称")
private String name; private String name;
/** /**
* *
*/ */
@ApiModelProperty(value = "任务类型")
private String type; private String type;
/** /**
@ -36,35 +40,42 @@ public class TbTaskInfo {
* 使cron * 使cron
* 使 * 使
*/ */
@ApiModelProperty(value = "表达式")
private String expression; private String expression;
/** /**
* *
*/ */
@Column(name = "[desc]") @Column(name = "[desc]")
@ApiModelProperty(value = "描述")
private String desc; private String desc;
/** /**
* *
*/ */
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
@ApiModelProperty(value = "任务输出")
private String actions; private String actions;
/** /**
* *
*/ */
@ApiModelProperty(value = "任务状态")
private String state; private String state;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建者")
private String uid; private String uid;
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
/** /**
* *
*/ */
@ApiModelProperty(value = "操作备注")
private String reason; private String reason;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -22,10 +23,13 @@ import javax.persistence.Table;
public class TbThingModel { public class TbThingModel {
@Id @Id
@ApiModelProperty(value = "主键")
private String id; private String id;
@ApiModelProperty(value = "产品key")
private String productKey; private String productKey;
@ApiModelProperty(value = "模型内容")
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
private String model; private String model;

View File

@ -1,5 +1,6 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -17,40 +18,49 @@ public class TbUserInfo {
/** /**
* *
*/ */
@ApiModelProperty(value = "用户账号")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "归属账号")
private String ownerId; private String ownerId;
/** /**
* *
*/ */
@ApiModelProperty(value = "密钥(密码加密后的内容)")
private String secret; private String secret;
/** /**
* *
*/ */
@ApiModelProperty(value = "用户昵称")
private String nickName; private String nickName;
/** /**
* 0- 1-male,2-female * 0- 1-male,2-female
*/ */
@ApiModelProperty(value="性别 0-未知 1-male,2-female")
private Integer gender; private Integer gender;
/** /**
* *
*/ */
@ApiModelProperty(value="头像地址")
private String avatarUrl; private String avatarUrl;
@ApiModelProperty(value="email")
private String email; private String email;
@ApiModelProperty(value="地址")
private String address; private String address;
/** /**
* Id * Id
*/ */
@ApiModelProperty(value="当前家庭Id")
private String currHomeId; private String currHomeId;
/** /**
@ -58,24 +68,29 @@ public class TbUserInfo {
* 0: * 0:
* 1: * 1:
*/ */
@ApiModelProperty(value="用户类型 0:平台用户 1:终端用户")
private Integer type; private Integer type;
/** /**
* *
*/ */
@ApiModelProperty(value="角色")
private String roles; private String roles;
/** /**
* *
*/ */
@ApiModelProperty(value="权限")
private String permissions; private String permissions;
/** /**
* 使 * 使
* :Constants.THIRD_PLATFORM * :Constants.THIRD_PLATFORM
*/ */
@ApiModelProperty(value="用户使用的平台")
private String usePlatforms; private String usePlatforms;
@ApiModelProperty(value="创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.Column;
@ -27,48 +28,57 @@ public class TbVirtualDevice {
/** /**
* *
*/ */
@ApiModelProperty(value = "所属用户")
private String uid; private String uid;
/** /**
* *
*/ */
@ApiModelProperty(value = "虚拟设备名称")
private String name; private String name;
/** /**
* key * key
*/ */
@ApiModelProperty(value = "产品key")
private String productKey; private String productKey;
/** /**
* *
*/ */
@ApiModelProperty(value = "虚拟类型")
private String type; private String type;
/** /**
* *
*/ */
@ApiModelProperty(value = "设备行为脚本")
@Column(columnDefinition = "text") @Column(columnDefinition = "text")
private String script; private String script;
/** /**
* *
*/ */
@ApiModelProperty(value = "触发方式执行方式")
@Column(name = "[trigger]") @Column(name = "[trigger]")
private String trigger; private String trigger;
/** /**
* *
*/ */
@ApiModelProperty(value = "触发表达式")
private String triggerExpression; private String triggerExpression;
/** /**
* *
*/ */
@ApiModelProperty(value = "运行状态")
private String state; private String state;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
} }

View File

@ -9,6 +9,7 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -27,8 +28,10 @@ public class TbVirtualDeviceMapping {
@Id @Id
private String id; private String id;
@ApiModelProperty(value = "虚拟设备ID")
private String virtualId; private String virtualId;
@ApiModelProperty(value = "设备ID")
private String deviceId; private String deviceId;
} }

View File

@ -41,6 +41,7 @@
<easyexcel.version>3.2.1</easyexcel.version> <easyexcel.version>3.2.1</easyexcel.version>
<velocity.version>2.3</velocity.version> <velocity.version>2.3</velocity.version>
<ip2region.version>2.7.0</ip2region.version> <ip2region.version>2.7.0</ip2region.version>
<jap-comment.version>1.0.0</jap-comment.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -512,6 +513,11 @@
<artifactId>velocity-engine-core</artifactId> <artifactId>velocity-engine-core</artifactId>
<version>${velocity.version}</version> <version>${velocity.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.github.biyanwen</groupId>
<artifactId>jpa-comment-spring-boot-starter</artifactId>
<version>${jap-comment.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<build> <build>