From 4f8558d1e836d834c4bad8b9fef565db3adb3d41 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 24 Dec 2019 11:50:44 +0800 Subject: [PATCH] Add: uploadPolicy serializer --- pkg/serializer/file.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkg/serializer/file.go 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"` +}