mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Add: uploadPolicy serializer
This commit is contained in:
10
pkg/serializer/file.go
Normal file
10
pkg/serializer/file.go
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package serializer
|
||||||
|
|
||||||
|
// UploadPolicy slave模式下传递的上传策略
|
||||||
|
type UploadPolicy struct {
|
||||||
|
SavePath string `json:"save_path"`
|
||||||
|
MaxSize uint64 `json:"save_path"`
|
||||||
|
AllowedExtension []string `json:"allowed_extension"`
|
||||||
|
CallbackURL string `json:"callback_url"`
|
||||||
|
CallbackKey string `json:"callback_key"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user