menu.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package model
  2. import "iot_manager_service/app/system/dao"
  3. type RsqMenuList struct {
  4. Records []dao.Menu `json:"records"` //记录列表
  5. Current int `json:"current"` //当前分页
  6. Size int `json:"size"` //每页数量
  7. Pages int `json:"pages"` //总页数
  8. Total int `json:"total"` //总数
  9. }
  10. type MenuRouteDetail struct {
  11. dao.Menu
  12. HasChildren bool `json:"hasChildren"`
  13. Children []MenuRouteDetail `json:"children"`
  14. }
  15. type RsqMenuLazyList struct {
  16. List []MenuLazyListDetail `json:"data"`
  17. }
  18. type MenuLazyListDetail struct {
  19. dao.Menu
  20. HasChildren bool `json:"hasChildren"`
  21. }
  22. type ResMenuIds struct {
  23. Menu []int64 `json:"menu"`
  24. DataScope []int `json:"dataScope"` //类型还未确定
  25. ApiScope []int `json:"apiScope"` //类型还未确定
  26. }
  27. type ResGrantTree struct {
  28. Menu []MenuRouteDetail `json:"menu"`
  29. DataScope []int `json:"dataScope"` //类型还未确定
  30. ApiScope []int `json:"apiScope"` //类型还未确定
  31. }