sys_team.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package system
  2. import (
  3. "time"
  4. )
  5. type SysTeamAddReq struct {
  6. GroupId int `description:"大组id"`
  7. DepartmentId int `description:"部门id"`
  8. TeamName string `description:"分组名称,多个用英文逗号隔开"`
  9. }
  10. type SysTeam struct {
  11. GroupId int `orm:"column(group_id);pk" description:"分组ID"`
  12. ParentId int `description:"父级Id"`
  13. DepartmentId int `description:"部门id"`
  14. GroupName string `description:"分组名称"`
  15. CreateTime time.Time `description:"创建时间"`
  16. }
  17. type SysTeamEditReq struct {
  18. TeamId int `description:"分组ID"`
  19. TeamName string `description:"分组名称"`
  20. }
  21. type SysTeamDeleteReq struct {
  22. TeamId int `description:"小组ID"`
  23. }
  24. type SysTeamList struct {
  25. GroupId int `orm:"column(group_id);pk" json:"DepartmentId" description:"小组ID"`
  26. ParentId int `json:"GroupId" description:"小组Id"`
  27. GroupName string `json:"DepartmentName" description:"分组名称"`
  28. CreateTime time.Time `description:"创建时间"`
  29. }