EventTemplate控制器编写
This commit is contained in:
@@ -56,6 +56,7 @@ public enum EventResponseEnum {
|
||||
NO_TABLE("501","字典表无influxDB表名数据"),
|
||||
DEV_LINE_EMPTY("501","设备监测点不可为空"),
|
||||
DIC_NAME_REPEAT("502","字典名称不可重复"),
|
||||
MODEL_NAME_REPEAT("514","模板名称不可重复"),
|
||||
CHILDREN_EXIT("503","存在子节点,不可删除"),
|
||||
|
||||
|
||||
|
||||
@@ -13,12 +13,6 @@ import javax.validation.constraints.Pattern;
|
||||
@Data
|
||||
public class EventDictParam {
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
@ApiModelProperty(value = "父级id")
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 字典表字段名称
|
||||
*/
|
||||
@@ -31,6 +25,12 @@ public class EventDictParam {
|
||||
@ApiModelProperty(value = "字典表字段描述")
|
||||
private String describe;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
@ApiModelProperty(value = "父级id")
|
||||
private String pid;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
|
||||
@@ -25,7 +25,7 @@ public class EventTemplateParam {
|
||||
@ApiModelProperty("模板名称")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DES64_REGEX, message = ValidMessage.CODE_FORMAT_ERROR)
|
||||
private String code;
|
||||
private String mark;
|
||||
|
||||
@ApiModelProperty("类型")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
|
||||
@@ -13,8 +13,8 @@ import lombok.EqualsAndHashCode;
|
||||
* @createTime 2022/09/10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "report_template")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class EventTemplate extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -37,7 +37,7 @@ public class EventTemplate extends BaseEntity {
|
||||
/**
|
||||
* 模板名称
|
||||
*/
|
||||
private String code;
|
||||
private String mark;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
|
||||
Reference in New Issue
Block a user