From 3428a9823b2d5778cb53b8c1fe47a04af1ec7357 Mon Sep 17 00:00:00 2001 From: toom1996 <23cm.cn@gmail.com> Date: Mon, 21 Sep 2026 22:36:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(street):=20=E8=A1=A5=E9=BD=90=20errors.go?= =?UTF-8?q?=20=E7=9A=84=20ErrInvalidImageGroup=20=E5=93=A8=E5=85=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/repository/errors.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/repository/errors.go b/internal/repository/errors.go index af955e2..098396b 100644 --- a/internal/repository/errors.go +++ b/internal/repository/errors.go @@ -10,3 +10,6 @@ import "errors" // ErrNotFound 记录不存在。 var ErrNotFound = errors.New("record not found") + +// ErrInvalidImageGroup 主副图分组操作不合法:主图不存在 / 不属于该草稿 / 自身不是主图 / 空集合。 +var ErrInvalidImageGroup = errors.New("invalid image group")