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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user