From 4e8d946913165901f25bb79add011d3c2df19792 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 11 八月 2023 14:30:29 +0800
Subject: [PATCH] fix
---
model/request/file.go | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/model/request/file.go b/model/request/file.go
index 5b17b6b..749b82f 100644
--- a/model/request/file.go
+++ b/model/request/file.go
@@ -11,7 +11,7 @@
}
type UpdateFile struct {
- Id int `json:"id"`
+ Id uint `json:"id"`
model.File
}
@@ -21,3 +21,10 @@
KeywordType constvar.FileKeywordType `json:"keywordType" form:"keywordType"`
Keyword string `json:"keyword" form:"keyword"`
}
+
+type DownloadFile struct {
+ SourceType string `json:"sourceType" form:"sourceType" binding:"required"` // 闄勪欢鏉ユ簮
+ SourceId int `json:"sourceId" form:"sourceId" binding:"required"` // 鏉ユ簮id
+ Id uint `json:"id" form:"id" binding:"required"` // 闄勪欢id
+ Key string `json:"key" form:"key" binding:"required"` // 闄勪欢瀛樺偍key
+}
--
Gitblit v1.8.0