From 8ce09fa76d734954174a953ca3394d7b656955eb Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 6 Jan 2022 15:15:03 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20funcs=20in=20storage=20instan?= =?UTF-8?q?ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage.go b/storage.go index ca69e83..1c5f693 100644 --- a/storage.go +++ b/storage.go @@ -14,6 +14,9 @@ type StorageInstance interface { SaveImgBytes(b []byte, imgdir string, force bool, samediff int) (string, string) SaveImg(r io.Reader, imgdir string, samediff int) (string, string) ScanImgs(imgdir string) + IsImgExsits(name string) bool + AddImage(name string) + Pick(exclude []string) string } type storage struct {