增加文件相关API

This commit is contained in:
刘祥超
2021-02-25 21:07:48 +08:00
parent ea8a3079a7
commit dfda15ecc9
5 changed files with 50 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ type File struct {
Type string `field:"type"` // 类型
State uint8 `field:"state"` // 状态
IsFinished uint8 `field:"isFinished"` // 是否已完成上传
IsPublic uint8 `field:"isPublic"` // 是否可以公开访问
}
type FileOperator struct {
@@ -27,6 +28,7 @@ type FileOperator struct {
Type interface{} // 类型
State interface{} // 状态
IsFinished interface{} // 是否已完成上传
IsPublic interface{} // 是否可以公开访问
}
func NewFileOperator() *FileOperator {