| 123456789101112131415161718192021222324252627282930313233343536 |
- package models
- import "time"
- type AppPlugin struct {
- Id int64
- Type string
- OrgId int64
- Enabled bool
- Pinned bool
- JsonData map[string]interface{}
- Created time.Time
- Updated time.Time
- }
- // ----------------------
- // COMMANDS
- // Also acts as api DTO
- type UpdateAppPluginCmd struct {
- Type string `json:"type" binding:"Required"`
- Enabled bool `json:"enabled"`
- Pinned bool `json:"pinned"`
- JsonData map[string]interface{} `json:"jsonData"`
- Id int64 `json:"-"`
- OrgId int64 `json:"-"`
- }
- // ---------------------
- // QUERIES
- type GetAppPluginsQuery struct {
- OrgId int64
- Result []*AppPlugin
- }
|