app_settings.go 622 B

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. import "time"
  3. type AppSettings struct {
  4. Id int64
  5. AppId 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 UpdateAppSettingsCmd struct {
  17. Enabled bool `json:"enabled"`
  18. Pinned bool `json:"pinned"`
  19. JsonData map[string]interface{} `json:"jsonData"`
  20. AppId string `json:"-"`
  21. OrgId int64 `json:"-"`
  22. }
  23. // ---------------------
  24. // QUERIES
  25. type GetAppSettingsQuery struct {
  26. OrgId int64
  27. Result []*AppSettings
  28. }