sys_dept.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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,omitempty"`
  19. }
  20. type SysDeptReq struct {
  21. ParentId int `json:"parentId" p:"parentId" v:"required#父级不能为空"`
  22. DeptName string `json:"deptName" p:"deptName" v:"required#部门名称不能为空"`
  23. Leader string `json:"leader" p:"leader" `
  24. Phone string `json:"phone" p:"phone" `
  25. Email string `json:"email" p:"email" `
  26. Status string `json:"status" p:"status" v:"required#状态必须"`
  27. Ancestors string `json:"ancestors" p:"ancestors" `
  28. Sort int `json:"sort" p:"sort" `
  29. }
  30. type UpdateSysDeptReq struct {
  31. Id int64 `json:"id" p:"id" v:"integer|min:1#ID只能为整数|ID只能为正数"`
  32. SysDeptReq
  33. UpdatedBy uint64 `json:"updatedBy" orm:"updated_by"`
  34. }