From b6347d7963e88ebe128483a90179492667c4724d Mon Sep 17 00:00:00 2001 From: what Date: Mon, 6 May 2024 15:41:33 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20OperationAccess=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support/list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/list.go b/support/list.go index 856fe3b..b182ff9 100644 --- a/support/list.go +++ b/support/list.go @@ -29,13 +29,13 @@ func (this *OperationAccess) Set(k string, v []any) error { return this.Push(k, v...) } -func (this *OperationAccess) Push(k string, input ...any) error { +func (this *OperationAccess) Push(k string, ids ...any) error { if _, ok := this.data[k]; !ok { this.Set(k, []any{}) } - for i := 0; i < len(input); i++ { - if v, err := this.Convert(input[i]); err != nil { + for i := 0; i < len(ids); i++ { + if v, err := this.Convert(ids[i]); err != nil { return err } else if !lo.Contains(this.data[k], v) { this.data[k] = append(this.data[k], v)