🍃 去除文件缓存

This commit is contained in:
微凉
2020-12-31 15:03:25 +08:00
parent ba7c33a2bb
commit d5e3527bfb
12 changed files with 84 additions and 46 deletions

View File

@ -9,13 +9,18 @@ import (
log "github.com/sirupsen/logrus"
)
type ListReq struct {
Password string `json:"password"`
alidrive.ListReq
}
func List(c *gin.Context) {
var list ListReq
if err := c.ShouldBindJSON(&list);err!=nil {
c.JSON(200, metaResponse(400,"Bad Request"))
return
}
log.Debugf("list:%v",list)
log.Debugf("list:%+v",list)
// cache
cacheKey:=fmt.Sprintf("%s-%s-%s","l",list.ParentFileId,list.Password)
if conf.Conf.Cache.Enable {