Feat: auth for remote callback / Modify: use map to store hooks in filesystem

This commit is contained in:
HFO4
2019-12-30 19:08:38 +08:00
parent ca9f44c06c
commit d29b7ef6f8
15 changed files with 158 additions and 59 deletions

View File

@@ -25,11 +25,12 @@ type UploadCredential struct {
// UploadSession 上传会话
type UploadSession struct {
UID uint
PolicyID uint
VirtualPath string
}
// UploadCallback 远程存储策略上传回调正文
type UploadCallback struct {
// RemoteUploadCallback 远程存储策略上传回调正文
type RemoteUploadCallback struct {
Name string `json:"name"`
SourceName string `json:"source_name"`
PicInfo string `json:"pic_info"`