Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNameRequired = errors.New("folder name is required")
)
Functions ¶
Types ¶
type Folder ¶
type FolderContent ¶
type FolderContent struct { Folder Folder `json:"folder"` Content []FolderResource `json:"content"` }
type FolderResource ¶
type FolderResource struct { ID int64 `json:"id"` Name string `json:"name"` Type string `json:"type"` CreatedAt time.Time `json:"created_at"` ModifiedAt time.Time `json:"modified_at"` }
func GetFolderContent ¶
func GetFolderContent(db *sql.DB, folderId int64) ([]FolderResource, error)
func GetRootFolderContent ¶
func GetRootFolderContent(db *sql.DB) ([]FolderResource, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.