sys_dept.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. )
  8. // SysDept is the golang structure for table sys_dept.
  9. type SysDept internal.SysDept
  10. // Fill with you ideas below.
  11. type SysDeptSearchParams struct {
  12. ExcludeId int `p:"excludeId"`
  13. DeptName string `p:"deptName"`
  14. Status string `p:"status"`
  15. }
  16. type SysDeptTreeRes struct {
  17. *SysDept
  18. Children []*SysDeptTreeRes `json:"children"`
  19. }
  20. type SysDeptAddParams struct {
  21. ParentID int `json:"parentId" orm:"parent_id" p:"parentId" v:"required#父级不能为空"`
  22. DeptName string `json:"deptName" orm:"dept_name" p:"deptName" v:"required#部门名称不能为空"`
  23. OrderNum int `json:"orderNum" orm:"order_num" p:"orderNum" v:"required#排序不能为空"`
  24. Leader string `json:"leader" orm:"leader" p:"leader" v:"required#负责人不能为空"`
  25. Phone string `json:"phone" orm:"Phone" p:"phone" v:"required#电话不能为空"`
  26. Email string `json:"email" orm:"email" p:"email" v:"required#邮箱不能为空"`
  27. Status string `json:"status" orm:"status" p:"status" v:"required#状态必须"`
  28. Ancestors string `json:"ancestors" p:"ancestors" orm:"ancestors"`
  29. CreatedBy uint64 `json:"CreatedBy" orm:"created_by"`
  30. }
  31. type EditParams struct {
  32. DeptID int64 `json:"deptId" orm:"dept_id" p:"id" v:"integer|min:1#ID只能为整数|ID只能为正数"`
  33. SysDeptAddParams
  34. UpdatedBy uint64 `json:"updatedBy" orm:"updated_by"`
  35. }