mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
feat: additional info of account
This commit is contained in:
parent
62ac168226
commit
492476dfe4
4
internal/driver/addition.go
Normal file
4
internal/driver/addition.go
Normal file
@ -0,0 +1,4 @@
|
||||
package driver
|
||||
|
||||
type Addition interface {
|
||||
}
|
@ -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
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user