MCPcopy Create free account
hub / github.com/biningo/note-gin / GetSubFile

Function GetSubFile

controller/FolderController/Get.go:17–30  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

15}
16
17func GetSubFile(c *gin.Context) {
18 page := c.Param("page")
19 folder_title := c.Query("title")
20 folderInfos, articleInfos, total := FolderService.GetSubFile(folder_title, utils.StrToInt(page))
21 //导航
22 nav := FolderService.ChangeNav(page, folder_title)
23 resp := common.FileList{
24 Folders: folderInfos,
25 Articles: articleInfos,
26 Nav: nav,
27 Total: total,
28 }
29 c.JSON(200, resp)
30}
31
32//编辑区目录的懒加载请求
33func GetSubFolders(c *gin.Context) {

Callers

nothing calls this directly

Calls 3

GetSubFileFunction · 0.92
StrToIntFunction · 0.92
ChangeNavFunction · 0.92

Tested by

no test coverage detected