mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add support for fetching appSettings by appId
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"errors"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrAppSettingNotFound = errors.New("AppSetting not found")
|
||||
)
|
||||
|
||||
type AppSettings struct {
|
||||
Id int64
|
||||
@@ -33,3 +40,9 @@ type GetAppSettingsQuery struct {
|
||||
OrgId int64
|
||||
Result []*AppSettings
|
||||
}
|
||||
|
||||
type GetAppSettingByAppIdQuery struct {
|
||||
AppId string
|
||||
OrgId int64
|
||||
Result *AppSettings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user