constants.go 734 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package model
  2. // pagination.
  3. const (
  4. DefaultPageSize = 5
  5. DefaultPageNum = 1
  6. )
  7. // Hook URL Status element
  8. const (
  9. HookURLStatusEnable = 1
  10. HookURLStatusDisable = 2
  11. )
  12. // HookEventStatusEnable
  13. const (
  14. HookEventStatusEnable = 1
  15. HookEventStatusDisable = 2
  16. )
  17. // Event Event
  18. type Event string
  19. // event element
  20. const (
  21. StoryCreate Event = "story::create"
  22. BugCreate = "bug::create"
  23. TaskCreate = "task::create"
  24. LaunchformCreate = "launchform::create"
  25. StoryUpdate = "story::update"
  26. BugUpdate = "bug::update"
  27. TaskUpdate = "task::update"
  28. LaunchformUpdate = "launchform::update"
  29. StoryDelete = "story::delete"
  30. BugDelete = "bug::delete"
  31. TaskDelete = "task::delete"
  32. )