Feat: filter and search file

This commit is contained in:
HFO4
2020-02-11 11:13:20 +08:00
parent 8f28a9c346
commit 127d0236f9
5 changed files with 34 additions and 13 deletions

View File

@@ -272,6 +272,7 @@ func (service *FileIDService) PreviewContent(ctx context.Context, c *gin.Context
// 重定向到文件源
if resp.Redirect {
c.Header("Cache-Control", fmt.Sprintf("max-age=%d", resp.MaxAge))
return serializer.Response{
Code: -301,
Data: resp.URL,