diff --git a/pkg/serializer/file.go b/pkg/serializer/file.go new file mode 100644 index 0000000..1103778 --- /dev/null +++ b/pkg/serializer/file.go @@ -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"` +}