mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-10 17:26:38 +08:00
修复文件管理页面分页问题
This commit is contained in:
@@ -364,7 +364,7 @@ func ListMyFiles(c *gin.Context) {
|
||||
Where("user_id = ? AND status != ?", currUser.ID, model.UploadStatusDeleted)
|
||||
|
||||
if req.Keyword != "" {
|
||||
query = query.Where("file_name ILIKE ?", "%"+req.Keyword+"%")
|
||||
query = query.Where("LOWER(file_name) LIKE ?", "%"+strings.ToLower(req.Keyword)+"%")
|
||||
}
|
||||
if req.Type != "" {
|
||||
query = query.Where("type = ?", req.Type)
|
||||
|
||||
Reference in New Issue
Block a user