mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Feat: remote delete file / Fix: broken Filesystem recycle in upload request
This commit is contained in:
6
pkg/serializer/slave.go
Normal file
6
pkg/serializer/slave.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package serializer
|
||||
|
||||
// RemoteDeleteRequest 远程策略删除接口请求正文
|
||||
type RemoteDeleteRequest struct {
|
||||
Files []string `json:"files"`
|
||||
}
|
||||
@@ -59,7 +59,6 @@ func DecodeUploadPolicy(raw string) (*UploadPolicy, error) {
|
||||
}
|
||||
|
||||
// EncodeUploadPolicy 序列化Header中携带的上传策略
|
||||
// TODO 测试
|
||||
func (policy *UploadPolicy) EncodeUploadPolicy() (string, error) {
|
||||
jsonRes, err := json.Marshal(policy)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user