mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、新增InDict注解校验字典;2、标签模板、标签入参type支持InDict=labelType检查;
This commit is contained in:
+2
@@ -32,4 +32,6 @@ public class DictTypeConstants {
|
||||
|
||||
public static final String PLATE_TEXTURE_TYPE = "plate_texture_type";// 板材纹路:0有 1无
|
||||
|
||||
public static final String LABEL_TYPE = "labelType"; // 标签类型
|
||||
|
||||
}
|
||||
|
||||
+4
-1
@@ -1,5 +1,7 @@
|
||||
package com.cf.imes.module.system.controller.admin.label.vo;
|
||||
|
||||
import com.cf.imes.framework.dict.core.validation.InDict;
|
||||
import com.cf.imes.module.system.enums.DictTypeConstants;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -17,6 +19,7 @@ public class LabelSaveReqVO {
|
||||
@Schema(description = "标签类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotNull(message = "标签类型不能为空")
|
||||
@Size(max = 32, message = "标签类型长度不能超过32个字符")
|
||||
@InDict(DictTypeConstants.LABEL_TYPE)
|
||||
private String type;
|
||||
|
||||
@Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@@ -43,4 +46,4 @@ public class LabelSaveReqVO {
|
||||
@Schema(description = "组织ID")
|
||||
private Long organId;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -1,5 +1,7 @@
|
||||
package com.cf.imes.module.system.controller.admin.labeltemplate.vo;
|
||||
|
||||
import com.cf.imes.framework.dict.core.validation.InDict;
|
||||
import com.cf.imes.module.system.enums.DictTypeConstants;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -16,6 +18,7 @@ public class LabelTemplateSaveReqVO {
|
||||
@Schema(description = "标签类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotNull(message = "标签类型不能为空")
|
||||
@Size(max = 50, message = "标签类型长度不能超过50个字符")
|
||||
@InDict(DictTypeConstants.LABEL_TYPE)
|
||||
private String type;
|
||||
|
||||
@Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@@ -41,4 +44,4 @@ public class LabelTemplateSaveReqVO {
|
||||
@Schema(description = "配置")
|
||||
private String template;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
inEnum.message=必須在指定範圍 {0}
|
||||
inDict.message=字典值 {0} 不存在或已停用
|
||||
inScope.message={0}不合法
|
||||
inScope.adPosition=廣告位置
|
||||
|
||||
@@ -103,4 +104,4 @@ excel.export.head.sms.log.templateContent=短信內容
|
||||
excel.export.head.sms.log.sendStatus=發送狀態
|
||||
excel.export.head.sms.log.templateId=模板編號
|
||||
excel.export.head.sms.log.templateCode=模板編碼
|
||||
excel.export.head.sms.log.templateType=短信類型
|
||||
excel.export.head.sms.log.templateType=短信類型
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
inEnum.message=Must be within the specified range {0}
|
||||
inDict.message=Dictionary value {0} does not exist or is disabled
|
||||
inScope.message={0} is illegal
|
||||
inScope.adPosition=Advertising position
|
||||
|
||||
@@ -103,4 +104,4 @@ excel.export.head.sms.log.templateContent=SMS Content
|
||||
excel.export.head.sms.log.sendStatus=Send Status
|
||||
excel.export.head.sms.log.templateId=Template ID
|
||||
excel.export.head.sms.log.templateCode=Template Code
|
||||
excel.export.head.sms.log.templateType=SMS Type
|
||||
excel.export.head.sms.log.templateType=SMS Type
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
inEnum.message=必须在指定范围 {0}
|
||||
inDict.message=字典值 {0} 不存在或已停用
|
||||
inScope.message={0}不合法
|
||||
inScope.adPosition=广告位置
|
||||
|
||||
@@ -103,4 +104,4 @@ excel.export.head.sms.log.templateContent=短信内容
|
||||
excel.export.head.sms.log.sendStatus=发送状态
|
||||
excel.export.head.sms.log.templateId=模板编号
|
||||
excel.export.head.sms.log.templateCode=模板编码
|
||||
excel.export.head.sms.log.templateType=短信类型
|
||||
excel.export.head.sms.log.templateType=短信类型
|
||||
|
||||
Reference in New Issue
Block a user