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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,6 +4,8 @@ import cc.iotkit.data.model.BaseEntity;
import cc.iotkit.model.system.SysConfig;
import io.github.linpeilie.annotations.AutoMapper;
import javax.persistence.GeneratedValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -31,36 +33,43 @@ public class TbSysConfig extends BaseEntity {
@Id
@GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ApiModelProperty(value = "参数主键")
private Long configId;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "参数名称")
private String configName;
/**
*
*/
@ApiModelProperty(value = "参数键名")
private String configKey;
/**
*
*/
@ApiModelProperty(value = "参数键值")
private String configValue;
/**
* Y N
*/
@ApiModelProperty(value = "系统内置Y是 N否")
private String configType;
/**
*
*/
@ApiModelProperty(value = "备注")
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.SysDept;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -22,6 +24,7 @@ import javax.persistence.Table;
@Entity
@Table(name = "sys_dept")
@AutoMapper(target = SysDept.class)
@ApiModel(value = "部门表")
public class TbSysDept extends BaseEntity {
private static final long serialVersionUID = 1L;
@ -29,56 +32,67 @@ public class TbSysDept extends BaseEntity {
* ID
*/
@Id
@ApiModelProperty(value = "部门ID")
private Long deptId;
/**
*
*/
@ApiModelProperty(value = "租户ID")
private String tenantId;
/**
* ID
*/
@ApiModelProperty(value = "父部门ID")
private Long parentId;
/**
*
*/
@ApiModelProperty(value = "部门名称")
private String deptName;
/**
*
*/
@ApiModelProperty(value = "显示顺序")
private Integer orderNum;
/**
*
*/
@ApiModelProperty(value = "负责人")
private String leader;
/**
*
*/
@ApiModelProperty(value = "联系电话")
private String phone;
/**
*
*/
@ApiModelProperty(value = "邮箱")
private String email;
/**
* :0,1
*/
@ApiModelProperty(value = "部门状态:0正常,1停用")
private String status;
/**
* 0 2
*/
@ApiModelProperty(value = "删除标志0代表存在 2代表删除")
private String delFlag;
/**
*
*/
@ApiModelProperty(value = "祖级列表")
private String ancestors;
}

View File

@ -2,6 +2,8 @@ package cc.iotkit.data.model;
import cc.iotkit.model.system.SysDictData;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -19,62 +21,74 @@ import javax.persistence.Table;
@Entity
@Table(name = "sys_dict_data")
@AutoMapper(target = SysDictData.class)
@ApiModel(value = "字典数据表")
public class TbSysDictData extends BaseEntity {
/**
*
*/
@Id
@ApiModelProperty(value = "字典编码")
private Long dictCode;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "字典排序")
private Integer dictSort;
/**
*
*/
@ApiModelProperty(value = "字典标签")
private String dictLabel;
/**
*
*/
@ApiModelProperty(value = "字典键值")
private String dictValue;
/**
*
*/
@ApiModelProperty(value = "字典类型")
private String dictType;
/**
*
*/
@ApiModelProperty(value = "样式属性(其他样式扩展)")
private String cssClass;
/**
*
*/
@ApiModelProperty(value = "表格字典样式")
private String listClass;
/**
* Y N
*/
@ApiModelProperty(value = "是否默认Y是 N否")
private String isDefault;
/**
* 0 1
*/
@ApiModelProperty(value = "状态0正常 1停用")
private String status;
/**
*
*/
@ApiModelProperty(value = "备注")
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.SysDictType;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -22,37 +24,44 @@ import javax.persistence.Table;
@Entity
@Table(name = "sys_dict_type")
@AutoMapper(target = SysDictType.class)
@ApiModel(value = "字典类型表")
public class TbSysDictType extends BaseEntity {
/**
*
*/
@Id
@ApiModelProperty(value = "字典主键")
private Long dictId;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "字典名称")
private String dictName;
/**
*
*/
@ApiModelProperty(value = "字典类型")
private String dictType;
/**
* 0 1
*/
@ApiModelProperty(value = "状态0正常 1停用")
private String status;
/**
*
*/
@ApiModelProperty(value = "备注")
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.SysLogininfor;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Entity;
@ -26,51 +27,61 @@ public class TbSysLogininfor extends BaseEntity {
* ID
*/
@Id
@ApiModelProperty(value = "ID")
private Long infoId;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "用户账号")
private String userName;
/**
* 0 1
*/
@ApiModelProperty(value = "登录状态 0成功 1失败")
private String status;
/**
* IP
*/
@ApiModelProperty(value = "登录IP地址")
private String ipaddr;
/**
*
*/
@ApiModelProperty(value = "登录地点")
private String loginLocation;
/**
*
*/
@ApiModelProperty(value = "浏览器类型")
private String browser;
/**
*
*/
@ApiModelProperty(value = "操作系统")
private String os;
/**
*
*/
@ApiModelProperty(value = "提示消息")
private String msg;
/**
* 访
*/
@ApiModelProperty(value = "访问时间")
private Date loginTime;
}

View File

@ -2,6 +2,8 @@ package cc.iotkit.data.model;
import cc.iotkit.model.system.SysMenu;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;
@ -19,6 +21,7 @@ import javax.persistence.*;
@Entity
@Table(name = "sys_menu")
@AutoMapper(target = SysMenu.class)
@ApiModel(value = "菜单权限表")
public class TbSysMenu extends BaseEntity {
/**
@ -28,78 +31,93 @@ public class TbSysMenu extends BaseEntity {
@GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@Column(name = "menu_id")
@ApiModelProperty(value = "菜单ID")
private Long menuId;
/**
* ID
*/
@ApiModelProperty(value = "父菜单ID")
@Column(name = "parent_id")
private Long parentId;
/**
*
*/
@ApiModelProperty(value = "菜单名称")
@Column(name = "menu_name")
private String menuName;
/**
*
*/
@ApiModelProperty(value = "显示顺序")
private Integer orderNum;
/**
*
*/
@ApiModelProperty(value = "路由地址")
private String path;
/**
*
*/
@ApiModelProperty(value = "组件路径")
private String component;
/**
*
*/
@ApiModelProperty(value = "路由参数")
private String queryParam;
/**
* 0 1
*/
@ApiModelProperty(value = "是否为外链0是 1否")
private String isFrame;
/**
* 0 1
*/
@ApiModelProperty(value = "是否缓存0缓存 1不缓存")
private String isCache;
/**
* M C F
*/
@ApiModelProperty(value = "类型M目录 C菜单 F按钮")
private String menuType;
/**
* 0 1
*/
@ApiModelProperty(value = "显示状态0显示 1隐藏")
private String visible;
/**
* 0 1
*/
@ApiModelProperty(value = "菜单状态0正常 1停用")
private String status;
/**
*
*/
@ApiModelProperty(value = "权限字符串")
private String perms;
/**
*
*/
@ApiModelProperty(value = "菜单图标")
private String icon;
/**
*
*/
@ApiModelProperty(value = "备注")
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.SysNotice;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -21,42 +23,50 @@ import javax.persistence.Table;
@Entity
@Table(name = "sys_notice")
@AutoMapper(target = SysNotice.class)
@ApiModel(value = "通知公告表")
public class TbSysNotice extends BaseEntity {
/**
* ID
*/
@Id
@ApiModelProperty(value = "公告ID")
private Long noticeId;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "公告标题")
private String noticeTitle;
/**
* 1 2
*/
@ApiModelProperty(value = "公告类型1通知 2公告")
private String noticeType;
/**
*
*/
@ApiModelProperty(value = "公告内容")
private String noticeContent;
/**
* 0 1
*/
@ApiModelProperty(value = "公告状态0正常 1关闭")
private String status;
/**
*
*/
@ApiModelProperty(value = "备注")
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.SysOperLog;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Entity;
@ -20,6 +22,7 @@ import java.util.Date;
@Entity
@Table(name = "oper_log")
@AutoMapper(target = SysOperLog.class)
@ApiModel(value = "操作日志记录表")
public class TbSysOperLog implements Serializable {
private static final long serialVersionUID = 1L;
@ -27,91 +30,109 @@ public class TbSysOperLog implements Serializable {
*
*/
@Id
@ApiModelProperty(value = "日志主键")
private Long operId;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private String tenantId;
/**
*
*/
@ApiModelProperty(value = "操作模块")
private String title;
/**
* 0 1 2 3
*/
@ApiModelProperty(value = "业务类型0其它 1新增 2修改 3删除")
private Integer businessType;
/**
*
*/
@ApiModelProperty(value = "请求方法")
private String method;
/**
*
*/
@ApiModelProperty(value = "请求方式")
private String requestMethod;
/**
* 0 1 2
*/
@ApiModelProperty(value = "操作类别0其它 1后台用户 2手机端用户")
private Integer operatorType;
/**
*
*/
@ApiModelProperty(value = "操作人员")
private String operName;
/**
*
*/
@ApiModelProperty(value = "部门名称")
private String deptName;
/**
* url
*/
@ApiModelProperty(value = "请求url")
private String operUrl;
/**
*
*/
@ApiModelProperty(value = "操作地址")
private String operIp;
/**
*
*/
@ApiModelProperty(value = "操作地点")
private String operLocation;
/**
*
*/
@ApiModelProperty(value = "请求参数")
private String operParam;
/**
*
*/
@ApiModelProperty(value = "返回参数")
private String jsonResult;
/**
* 0 1
*/
@ApiModelProperty(value = "操作状态0正常 1异常")
private Integer status;
/**
*
*/
@ApiModelProperty(value = "错误消息")
private String errorMsg;
/**
*
*/
@ApiModelProperty(value = "操作时间")
private Date operTime;
/**
*
*/
@ApiModelProperty(value = "消耗时间")
private Long costTime;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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