blob: 95551725dded68a6e0fa2e8923a100ab5a1b0faf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package services
import (
"lain/data"
"lain/jobs"
"lain/repository"
"github.com/gofiber/fiber/v2"
)
func GetFolders(userEmail, activeFolder string) []fiber.Map {
count, _ := repository.CountFolders(userEmail)
if count == 0 {
jobs.SyncFolders(userEmail, data.FolderIcons)
}
return repository.BuildFolderTree(userEmail, activeFolder)
}
func GetFolderDisplayName(userEmail, folderPath string) string {
return repository.GetFolderDisplayName(userEmail, folderPath)
}
|