module_index.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package modules
  2. import (
  3. others "golang-fave/engine/wrapper/resources/others"
  4. utils "golang-fave/engine/wrapper/utils"
  5. )
  6. func (this *Module) Module_index() {
  7. // Do something here...
  8. }
  9. func (this *Module) Module_index_display() bool {
  10. return true
  11. }
  12. func (this *Module) Module_index_alias() string {
  13. return "index"
  14. }
  15. func (this *Module) Module_index_name() string {
  16. return "Pages"
  17. }
  18. func (this *Module) Module_index_icon() string {
  19. return others.File_assets_sys_svg_page
  20. }
  21. func (this *Module) Module_index_order() int {
  22. return 1
  23. }
  24. func (this *Module) Module_index_submenu() []utils.ModuleSubMenu {
  25. result := make([]utils.ModuleSubMenu, 0)
  26. result = append(result, utils.ModuleSubMenu{
  27. Alias: "default",
  28. Name: "List of pages",
  29. Icon: others.File_assets_sys_svg_list,
  30. })
  31. result = append(result, utils.ModuleSubMenu{
  32. Alias: "modify",
  33. Name: "Add new page",
  34. Icon: others.File_assets_sys_svg_plus,
  35. })
  36. return result
  37. }
  38. func (this *Module) Module_index_content() string {
  39. return "Index content"
  40. }
  41. func (this *Module) Module_index_sidebar() string {
  42. return "Index right sidebar"
  43. }