Add implementation for folder store methods (#57700)

* Add implementation for folder store methods

* Add Move implementation

* Add back comment and fix query

* Remove Move from store

* Adjust GetChildren

* Fix errutil error declaration and usage

* Add org id to get children query
This commit is contained in:
idafurjes
2022-10-28 15:35:49 +02:00
committed by GitHub
parent 2cd9cbd359
commit 6b483a8dca
4 changed files with 46 additions and 26 deletions
+5
View File
@@ -2,6 +2,8 @@ package folder
import (
"time"
"github.com/grafana/grafana/pkg/util/errutil"
)
const (
@@ -9,6 +11,8 @@ const (
MaxNestedFolderDepth = 8
)
var ErrFolderNotFound = errutil.NewBase(errutil.StatusNotFound, "folder.notFound")
type Folder struct {
ID int64
OrgID int64
@@ -87,6 +91,7 @@ type GetParentsQuery struct {
type GetTreeQuery struct {
UID string
OrgID int64
Depth int64
// Pagination options