feat: additional info of account

refactor/fs
Noah Hsu 2022-06-06 22:31:56 +08:00
parent 62ac168226
commit 492476dfe4
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,4 @@
package driver
type Addition interface {
}

View File

@ -22,11 +22,12 @@ type Writer interface {
Rename(ctx context.Context, src, dst string) error
Copy(ctx context.Context, src, dst string) error
Remove(ctx context.Context, path string) error
Put(ctx context.Context, stream FileStream, parent string) error
Put(ctx context.Context, stream FileStream, parentPath string) error
}
type Other interface {
Init(ctx context.Context) error
Update(ctx context.Context) error
Drop(ctx context.Context) error
Additional() Addition
}

View File

@ -6,5 +6,5 @@ type Account struct {
Index int `json:"index"`
Driver string `json:"driver"`
Status string `json:"status"`
Custom string `json:"custom"`
Addition string `json:"addition"`
}