Add: uploadPolicy serializer
This commit is contained in:
parent
f8c8604cda
commit
4f8558d1e8
1 changed files with 10 additions and 0 deletions
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"`
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue