Skip to content

Commit 492476d

Browse files
committed
feat: additional info of account
1 parent 62ac168 commit 492476d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

internal/driver/addition.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package driver
2+
3+
type Addition interface {
4+
}

internal/driver/driver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ type Writer interface {
2222
Rename(ctx context.Context, src, dst string) error
2323
Copy(ctx context.Context, src, dst string) error
2424
Remove(ctx context.Context, path string) error
25-
Put(ctx context.Context, stream FileStream, parent string) error
25+
Put(ctx context.Context, stream FileStream, parentPath string) error
2626
}
2727

2828
type Other interface {
2929
Init(ctx context.Context) error
3030
Update(ctx context.Context) error
3131
Drop(ctx context.Context) error
32+
Additional() Addition
3233
}

internal/model/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ type Account struct {
66
Index int `json:"index"`
77
Driver string `json:"driver"`
88
Status string `json:"status"`
9-
Custom string `json:"custom"`
9+
Addition string `json:"addition"`
1010
}

0 commit comments

Comments
 (0)