mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 11:43:46 +08:00
模块化上传驱动,使用泛型优化工具库降低冗余
This commit is contained in:
@@ -5,6 +5,16 @@
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
package consts
|
||||
|
||||
// 上传类型
|
||||
const (
|
||||
UploadTypeFile = 1 // 文件
|
||||
UploadTypeImage = 2 // 图片
|
||||
UploadTypeDoc = 3 // 文档
|
||||
UploadTypeAudio = 4 // 音频
|
||||
UploadTypeVideo = 5 // 视频
|
||||
)
|
||||
|
||||
// 上传存储驱动
|
||||
const (
|
||||
UploadDriveLocal = "local" // 本地驱动
|
||||
UploadDriveUCloud = "ucloud" // ucloud对象存储
|
||||
|
||||
Reference in New Issue
Block a user