dev
parent
aa867f3191
commit
9f92675ba1
|
|
@ -1,5 +1,6 @@
|
|||
package com.cowr.ssjygl.sms.noticecontact;
|
||||
|
||||
import com.cowr.common.utils.StrUtil;
|
||||
import com.jfinal.core.Controller;
|
||||
import com.jfinal.kit.StrKit;
|
||||
import com.cowr.common.validator.CrudParamValidator;
|
||||
|
|
@ -21,8 +22,8 @@ public class SmsNoticeContactValidator extends CrudParamValidator {
|
|||
|
||||
validateString("id", 1, 32, "id", "id 长度 1~32");
|
||||
}
|
||||
|
||||
validateString("phone", 1, 20, "phone", "phone 长度 1~20");
|
||||
|
||||
validateRegex("phone", StrUtil.regphone, "phone", "phone 必须为手机号格式");
|
||||
validateString("name", 1, 255, "name", "name 长度 0~255");
|
||||
validateString("type", 1, 1073741824, "type", "type 长度 0~1073741824");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue