|
|
@@ -7,6 +7,8 @@ import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
import org.hswebframework.ezorm.rdb.mapping.annotation.*;
|
|
|
import org.hswebframework.web.api.crud.entity.GenericEntity;
|
|
|
+import org.hswebframework.web.api.crud.entity.RecordCreationEntity;
|
|
|
+import org.hswebframework.web.crud.generator.Generators;
|
|
|
import org.jetlinks.community.bridge.enums.BridgeStatus;
|
|
|
import org.jetlinks.core.device.DeviceState;
|
|
|
|
|
|
@@ -30,19 +32,13 @@ import java.sql.JDBCType;
|
|
|
})
|
|
|
@Getter
|
|
|
@Setter
|
|
|
-public class AliIotBridgeEntity extends GenericEntity<String> {
|
|
|
+public class AliIotBridgeEntity extends GenericEntity<String> implements RecordCreationEntity {
|
|
|
|
|
|
@Comment("云云对接名称")
|
|
|
@Column(name = "name",nullable = false)
|
|
|
@Schema(description = "云云对接名称")
|
|
|
private String name;
|
|
|
|
|
|
- @Comment("网桥产品id")
|
|
|
- @Column(name = "product_id")
|
|
|
- @Schema(description = "网桥产品id")
|
|
|
- @Deprecated
|
|
|
- private String productId;
|
|
|
-
|
|
|
@Comment("说明")
|
|
|
@Column(name = "description")
|
|
|
@Schema(description = "说明")
|
|
|
@@ -55,12 +51,6 @@ public class AliIotBridgeEntity extends GenericEntity<String> {
|
|
|
@ColumnType(jdbcType = JDBCType.CLOB)
|
|
|
private AccessConfig accessConfig;
|
|
|
|
|
|
- @Comment("云云协议")
|
|
|
- @Column(name = "protocol")
|
|
|
- @Schema(description = "云云协议")
|
|
|
- @Deprecated
|
|
|
- private String protocol;
|
|
|
-
|
|
|
@Column(name = "state",length = 16,nullable = false)
|
|
|
@EnumCodec
|
|
|
@ColumnType(javaType = String.class)
|
|
|
@@ -89,6 +79,28 @@ public class AliIotBridgeEntity extends GenericEntity<String> {
|
|
|
@Schema(description = "所在集群节点id")
|
|
|
private String nodeId;
|
|
|
|
|
|
+
|
|
|
+ @Column(name = "creator_id", updatable = false)
|
|
|
+ @Schema(
|
|
|
+ description = "创建者ID(只读)"
|
|
|
+ ,accessMode = Schema.AccessMode.READ_ONLY
|
|
|
+ )
|
|
|
+ private String creatorId;
|
|
|
+
|
|
|
+ @Column(name = "creator_name", updatable = false)
|
|
|
+ @Schema(
|
|
|
+ description = "创建者名称(只读)"
|
|
|
+ ,accessMode = Schema.AccessMode.READ_ONLY
|
|
|
+ )
|
|
|
+ private String creatorName;
|
|
|
+
|
|
|
+ @Column(name = "create_time", updatable = false)
|
|
|
+ @DefaultValue(generator = Generators.CURRENT_TIME)
|
|
|
+ @Schema(
|
|
|
+ description = "创建时间(只读)"
|
|
|
+ , accessMode = Schema.AccessMode.READ_ONLY
|
|
|
+ )
|
|
|
+ private Long createTime;
|
|
|
@Data
|
|
|
public static class AccessConfig implements Serializable {
|
|
|
@NotNull
|