| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("device_group_config") |
| | | @Schema(name = "DeviceGroupConfig", description = "设备组配置信息") |
| | | @ApiModel(value = "DeviceGroupConfig", description = "设备组配置信息") |
| | | public class DeviceGroupConfig { |
| | | |
| | | @Schema(description = "设备组ID", example = "1") |
| | | @ApiModelProperty(value = "设备组ID", example = "1") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @Schema(description = "设备组名称", example = "生产线A") |
| | | @ApiModelProperty(value = "设备组名称", example = "生产线A") |
| | | @TableField("group_name") |
| | | private String groupName; |
| | | |
| | | @Schema(description = "设备组编号", example = "GROUP_001") |
| | | @ApiModelProperty(value = "设备组编号", example = "GROUP_001") |
| | | @TableField("group_code") |
| | | private String groupCode; |
| | | |
| | | @Schema(description = "设备组类型:1-生产线,2-测试线,3-辅助设备组", example = "1") |
| | | @ApiModelProperty(value = "设备组类型:1-生产线,2-测试线,3-辅助设备组", example = "1") |
| | | @TableField("group_type") |
| | | private Integer groupType; |
| | | |
| | | @Schema(description = "所属项目ID", example = "1") |
| | | @ApiModelProperty(value = "所属项目ID", example = "1") |
| | | @TableField("project_id") |
| | | private Long projectId; |
| | | |
| | | @Schema(description = "设备组状态:0-停用,1-启用,3-维护中", example = "1") |
| | | @ApiModelProperty(value = "设备组状态:0-停用,1-启用,3-维护中", example = "1") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @Schema(description = "最大并发设备数", example = "3") |
| | | @ApiModelProperty(value = "最大并发设备数", example = "3") |
| | | @TableField("max_concurrent_devices") |
| | | private Integer maxConcurrentDevices; |
| | | |
| | | @Schema(description = "心跳检测间隔(秒)", example = "30") |
| | | @ApiModelProperty(value = "心跳检测间隔(秒)", example = "30") |
| | | @TableField("heartbeat_interval") |
| | | private Integer heartbeatInterval; |
| | | |
| | | @Schema(description = "通信超时时间(毫秒)", example = "5000") |
| | | @ApiModelProperty(value = "通信超时时间(毫秒)", example = "5000") |
| | | @TableField("communication_timeout") |
| | | private Integer communicationTimeout; |
| | | |
| | | @Schema(description = "设备组描述", example = "生产线A设备组") |
| | | @ApiModelProperty(value = "设备组描述", example = "生产线A设备组") |
| | | @TableField("description") |
| | | private String description; |
| | | |
| | | @Schema(description = "扩展配置JSON", example = "{\"retryTimes\": 3, \"batchSize\": 100}") |
| | | @ApiModelProperty(value = "扩展配置JSON", example = "{\"retryTimes\": 3, \"batchSize\": 100}") |
| | | @TableField("extra_config") |
| | | private String extraConfig; |
| | | |
| | | @Schema(description = "创建时间") |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField(value = "created_time", fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createdTime; |
| | | |
| | | @Schema(description = "更新时间") |
| | | @ApiModelProperty(value = "更新时间") |
| | | @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updatedTime; |
| | | |
| | | @Schema(description = "创建人", example = "system") |
| | | @ApiModelProperty(value = "创建人", example = "system") |
| | | @TableField(value = "created_by", fill = FieldFill.INSERT) |
| | | private String createdBy; |
| | | |
| | | @Schema(description = "更新人", example = "system") |
| | | @ApiModelProperty(value = "更新人", example = "system") |
| | | @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE) |
| | | private String updatedBy; |
| | | |
| | | @Schema(description = "是否删除:0-否,1-是", example = "0") |
| | | @ApiModelProperty(value = "是否删除:0-否,1-是", example = "0") |
| | | @TableField("is_deleted") |
| | | @TableLogic |
| | | private Integer isDeleted; |