From 5f0170df9787c6f3ff17cc168b3f2e3f511453f6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 31 十月 2023 20:04:16 +0800
Subject: [PATCH] 支持职级降级的情况
---
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