Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-24 11:41:18 +08:00
parent a1781ae34d
commit 994bdc06a2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 39 additions and 62 deletions

View file

@ -35,7 +35,7 @@ func getRecentDocs(c *gin.Context) {
}
// 获取排序参数
sortBy := "viewedAt" // 默认按浏览时间排序
sortBy := "viewedAt" // 默认按浏览时间排序openAt按打开时间排序closedAt按关闭时间排序
if arg["sortBy"] != nil {
sortBy = arg["sortBy"].(string)
}
@ -248,7 +248,6 @@ func removeOutlineStorage(c *gin.Context) {
}
}
func updateRecentDocViewTime(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
@ -267,7 +266,6 @@ func updateRecentDocViewTime(c *gin.Context) {
}
}
func updateRecentDocOpenTime(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
@ -302,4 +300,4 @@ func updateRecentDocCloseTime(c *gin.Context) {
ret.Msg = err.Error()
return
}
}
}