app_plugin.go 679 B

123456789101112131415161718192021222324252627282930313233343536
  1. package models
  2. import "time"
  3. type AppPlugin struct {
  4. Id int64
  5. Type string
  6. OrgId int64
  7. Enabled bool
  8. Pinned bool
  9. JsonData map[string]interface{}
  10. Created time.Time
  11. Updated time.Time
  12. }
  13. // ----------------------
  14. // COMMANDS
  15. // Also acts as api DTO
  16. type UpdateAppPluginCmd struct {
  17. Type string `json:"type" binding:"Required"`
  18. Enabled bool `json:"enabled"`
  19. Pinned bool `json:"pinned"`
  20. JsonData map[string]interface{} `json:"jsonData"`
  21. Id int64 `json:"-"`
  22. OrgId int64 `json:"-"`
  23. }
  24. // ---------------------
  25. // QUERIES
  26. type GetAppPluginsQuery struct {
  27. OrgId int64
  28. Result []*AppPlugin
  29. }