mirror of https://github.com/Xhofe/alist
feat: additional info of account
parent
62ac168226
commit
492476dfe4
|
@ -0,0 +1,4 @@
|
||||||
|
package driver
|
||||||
|
|
||||||
|
type Addition interface {
|
||||||
|
}
|
|
@ -22,11 +22,12 @@ type Writer interface {
|
||||||
Rename(ctx context.Context, src, dst string) error
|
Rename(ctx context.Context, src, dst string) error
|
||||||
Copy(ctx context.Context, src, dst string) error
|
Copy(ctx context.Context, src, dst string) error
|
||||||
Remove(ctx context.Context, path 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 {
|
type Other interface {
|
||||||
Init(ctx context.Context) error
|
Init(ctx context.Context) error
|
||||||
Update(ctx context.Context) error
|
Update(ctx context.Context) error
|
||||||
Drop(ctx context.Context) error
|
Drop(ctx context.Context) error
|
||||||
|
Additional() Addition
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,5 @@ type Account struct {
|
||||||
Index int `json:"index"`
|
Index int `json:"index"`
|
||||||
Driver string `json:"driver"`
|
Driver string `json:"driver"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Custom string `json:"custom"`
|
Addition string `json:"addition"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue