const.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package presets
  2. const (
  3. PermModule = "presets"
  4. PermList = "presets:list"
  5. PermGet = "presets:get"
  6. PermCreate = "presets:create"
  7. PermUpdate = "presets:update"
  8. PermDelete = "presets:delete"
  9. PermActions = "actions"
  10. PermDoListingAction = "do_listing_action"
  11. PermBulkActions = "bulk_actions"
  12. )
  13. var (
  14. PermRead = []string{PermList, PermGet}
  15. )
  16. // params
  17. const (
  18. ParamID = "id"
  19. ParamAction = "action"
  20. ParamOverlay = "overlay"
  21. ParamOverlayAfterUpdateScript = "overlay_after_update_script"
  22. ParamOverlayUpdateID = "overlay_update_id"
  23. ParamBulkActionName = "bulk_action"
  24. ParamListingActionName = "listing_action"
  25. ParamSelectedIds = "selected_ids"
  26. ParamInDialog = "presets_in_dialog"
  27. ParamListingQueries = "presets_listing_queries"
  28. ParamAfterDeleteEvent = "presets_after_delete_event"
  29. // list editor
  30. ParamAddRowFormKey = "listEditor_AddRowFormKey"
  31. ParamRemoveRowFormKey = "listEditor_RemoveRowFormKey"
  32. ParamIsStartSort = "listEditor_IsStartSort"
  33. ParamSortSectionFormKey = "listEditor_SortSectionFormKey"
  34. ParamSortResultFormKey = "listEditor_SortResultFormKey"
  35. )
  36. const (
  37. ColorPrimary = "primary"
  38. ColorSecondary = "secondary"
  39. )