(c *gin.Context)
| 15 | } |
| 16 | |
| 17 | func 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 | //编辑区目录的懒加载请求 |
| 33 | func GetSubFolders(c *gin.Context) { |
nothing calls this directly
no test coverage detected