From bb8c6763c2c9bfccd210d998e17eaa66aa20e593 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 08 八月 2023 10:49:29 +0800
Subject: [PATCH] 增加文件下载和预览接口,并统计下载和预览次数

---
 model/file.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/model/file.go b/model/file.go
index bd1c46a..11225f1 100644
--- a/model/file.go
+++ b/model/file.go
@@ -13,9 +13,9 @@
 	File struct {
 		Name          string `gorm:"name" json:"name"`
 		Size          int64  `gorm:"size" json:"size"`                    // 鏂囦欢澶у皬
-		FilePath      string `gorm:"file_path" json:"filePath"`           // 鏂囦欢璺緞
+		FilePath      string `gorm:"file_path" json:"-"`                  // 鏂囦欢璺緞
 		Key           string `gorm:"key" json:"key"`                      // 瀵硅薄瀛樺偍key
-		Bucket        string `gorm:"bucket" json:"bucket"`                // 瀵硅薄瀛樺偍bucket
+		Bucket        string `gorm:"bucket" json:"-"`                     // 瀵硅薄瀛樺偍bucket
 		DownloadCount int    `gorm:"download_count" json:"downloadCount"` // 涓嬫娆℃暟
 		PreviewCount  int    `gorm:"preview_count" json:"previewCount"`   // 棰勮娆℃暟
 		FileType      string `gorm:"file_type" json:"fileType"`           // 鏂囦欢绫诲瀷

--
Gitblit v1.8.0