app_plugin.go 615 B

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