refactor🎨: 修改错误信息提示(#165)

This commit is contained in:
zhangwenjian
2021-07-01 22:24:32 +08:00
parent eb8062d19b
commit d0f49ef8c7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ type SysDeptControl struct {
DeptPath string `json:"deptPath" comment:""` //路径
DeptName string `json:"deptName" comment:"部门名称" vd:"len($)>0"` //部门名称
Sort int `json:"sort" comment:"排序" vd:"?"` //排序
Leader string `json:"leader,required" comment:"负责人" vd:"@:len($)>0;msg:validation failed:该字段不能为空"` //负责人
Leader string `json:"leader" comment:"负责人" vd:"@:len($)>0; msg:'leader不能为空'"` //负责人
Phone string `json:"phone" comment:"手机" vd:"?"` //手机
Email string `json:"email" comment:"邮箱" vd:"?"` //邮箱
Status int `json:"status" comment:"状态" vd:"$>0"` //状态