From 492476dfe40b4ede7c6fa089965e36083b111f02 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Mon, 6 Jun 2022 22:31:56 +0800 Subject: [PATCH] feat: additional info of account --- internal/driver/addition.go | 4 ++++ internal/driver/driver.go | 3 ++- internal/model/account.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 internal/driver/addition.go diff --git a/internal/driver/addition.go b/internal/driver/addition.go new file mode 100644 index 00000000..000a441c --- /dev/null +++ b/internal/driver/addition.go @@ -0,0 +1,4 @@ +package driver + +type Addition interface { +} diff --git a/internal/driver/driver.go b/internal/driver/driver.go index ab3e6953..9473c710 100644 --- a/internal/driver/driver.go +++ b/internal/driver/driver.go @@ -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 } diff --git a/internal/model/account.go b/internal/model/account.go index f5c70c91..3a2c0cf5 100644 --- a/internal/model/account.go +++ b/internal/model/account.go @@ -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"` }