Skip to content

Commit 79965ab

Browse files
committed
feat(driver): add args to init and update func
1 parent 492476d commit 79965ab

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

internal/driver/driver.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package driver
22

33
import (
44
"context"
5+
"github.com/alist-org/alist/v3/internal/model"
56
)
67

78
type Driver interface {
@@ -26,8 +27,9 @@ type Writer interface {
2627
}
2728

2829
type Other interface {
29-
Init(ctx context.Context) error
30-
Update(ctx context.Context) error
30+
Init(ctx context.Context, account model.Account) error
31+
Update(ctx context.Context, account model.Account) error
3132
Drop(ctx context.Context) error
32-
Additional() Addition
33+
// GetAccount transform additional field to string and assign to account's addition
34+
GetAccount() model.Account
3335
}

0 commit comments

Comments
 (0)