// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package model import ( "dashoo.cn/micro/app/model/internal" ) // SysDept is the golang structure for table sys_dept. type SysDept internal.SysDept // Fill with you ideas below. type SysDeptSearchParams struct { ExcludeId int `p:"excludeId"` DeptName string `p:"deptName"` Status string `p:"status"` } type SysDeptTreeRes struct { *SysDept Children []*SysDeptTreeRes `json:"children,omitempty"` } type SysDeptReq struct { ParentId int `json:"parentId" p:"parentId" v:"required#父级不能为空"` DeptName string `json:"deptName" p:"deptName" v:"required#部门名称不能为空"` Leader string `json:"leader" p:"leader" ` Phone string `json:"phone" p:"phone" ` Email string `json:"email" p:"email" ` Status string `json:"status" p:"status" v:"required#状态必须"` Ancestors string `json:"ancestors" p:"ancestors" ` Sort int `json:"sort" p:"sort" ` } type UpdateSysDeptReq struct { Id int64 `json:"id" p:"id" v:"integer|min:1#ID只能为整数|ID只能为正数"` SysDeptReq UpdatedBy uint64 `json:"updatedBy" orm:"updated_by"` }