【代码评审】IoT:物模型的维护
This commit is contained in:
parent
88ec5269d9
commit
d116e5eec1
|
@ -21,7 +21,7 @@ public class ThingModelEvent {
|
||||||
* 事件标识符
|
* 事件标识符
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "事件标识符不能为空")
|
@NotEmpty(message = "事件标识符不能为空")
|
||||||
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "事件标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过32个字符")
|
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "事件标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过 32 个字符")
|
||||||
private String identifier;
|
private String identifier;
|
||||||
/**
|
/**
|
||||||
* 事件名称
|
* 事件名称
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class ThingModelParam {
|
||||||
* 参数标识符
|
* 参数标识符
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "参数标识符不能为空")
|
@NotEmpty(message = "参数标识符不能为空")
|
||||||
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "参数标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过32个字符")
|
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "参数标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过 32 个字符")
|
||||||
private String identifier;
|
private String identifier;
|
||||||
/**
|
/**
|
||||||
* 参数名称
|
* 参数名称
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class ThingModelProperty {
|
||||||
* 属性标识符
|
* 属性标识符
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "属性标识符不能为空")
|
@NotEmpty(message = "属性标识符不能为空")
|
||||||
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "属性标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过32个字符")
|
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "属性标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过 32 个字符")
|
||||||
private String identifier;
|
private String identifier;
|
||||||
/**
|
/**
|
||||||
* 属性名称
|
* 属性名称
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class ThingModelService {
|
||||||
* 服务标识符
|
* 服务标识符
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "服务标识符不能为空")
|
@NotEmpty(message = "服务标识符不能为空")
|
||||||
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "服务标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过32个字符")
|
@Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_]{0,31}$", message = "服务标识符只能由字母、数字和下划线组成,必须以字母开头,长度不超过 32 个字符")
|
||||||
private String identifier;
|
private String identifier;
|
||||||
/**
|
/**
|
||||||
* 服务名称
|
* 服务名称
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.time.LocalDateTime;
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class IotThingModelRespVO {
|
public class IotThingModelRespVO {
|
||||||
|
|
||||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21816")
|
@Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21816")
|
||||||
@ExcelProperty("产品ID")
|
@ExcelProperty("产品ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue