refactor🎨: 修改请求参数命名

This commit is contained in:
zhangwenjian committed 2021-06-29 16:32:44 +08:00
1 parent 3fd34db3c1
commit f80e64688e
14 files changed
+192 -99

No files matched your search

+9 -9
View File
@@ -27,15 +27,15 @@ func (m *SysDeptSearch) GetNeedSearch() interface{} {
// SysDeptControl 增、改使用的结构体
type SysDeptControl struct {
DeptId int `uri:"id" comment:"编码"` // 编码
ParentId int `json:"parentId" comment:"上级部门"` //上级部门
DeptPath string `json:"deptPath" comment:""` //路径
DeptName string `json:"deptName" comment:"部门名称"` //部门名称
Sort int `json:"sort" comment:"排序"` //排序
Leader string `json:"leader" comment:"负责人"` //负责人
Phone string `json:"phone" comment:"手机"` //手机
Email string `json:"email" comment:"邮箱"` //邮箱
Status int `json:"status" comment:"状态"` //状态
DeptId int `uri:"id" comment:"编码"` // 编码
ParentId int `json:"parentId" comment:"上级部门" vd:"?"` //上级部门
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:该字段不能为空"` //负责人
Phone string `json:"phone" comment:"手机" vd:"?"` //手机
Email string `json:"email" comment:"邮箱" vd:"?"` //邮箱
Status int `json:"status" comment:"状态" vd:"$>0"` //状态
common.ControlBy
}