EventTemplate控制器编写
This commit is contained in:
@@ -22,22 +22,15 @@ public class EventTemplateParam {
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("模板名称")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DES64_REGEX, message = ValidMessage.CODE_FORMAT_ERROR)
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty("父节点")
|
||||
@NotBlank(message = ValidMessage.PID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.PID_FORMAT_ERROR)
|
||||
private String pid;
|
||||
|
||||
@ApiModelProperty("所有父节点")
|
||||
private String pids;
|
||||
|
||||
@ApiModelProperty("排序")
|
||||
@NotNull(message = ValidMessage.SORT_NOT_NULL)
|
||||
@Min(value = 0, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
@Max(value = 999, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
private Integer sort;
|
||||
|
||||
|
||||
@ApiModelProperty("类型")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.TYPE_REGEX, message = ValidMessage.DICT_TYPE_ID_FORMAT_ERROR)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
|
||||
@@ -14,8 +14,8 @@ import lombok.EqualsAndHashCode;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "report_template_dict")
|
||||
public class EventDict extends BaseEntity {
|
||||
@TableName(value = "report_template")
|
||||
public class EventTemplate extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -30,28 +30,18 @@ public class EventDict extends BaseEntity {
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
* 类型
|
||||
*/
|
||||
private String describe;
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 父节点
|
||||
* 模板名称
|
||||
*/
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 上层所有父节点
|
||||
*/
|
||||
private String pids;
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user