Skip to content

Commit

Permalink
feat: additional info of account
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 6, 2022
1 parent 62ac168 commit 492476d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions internal/driver/addition.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package driver

type Addition interface {
}
3 changes: 2 additions & 1 deletion internal/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion internal/model/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 492476d

Please sign in to comment.