From f354ce0aa26c0d48f425f6e55bade5d1095c78f9 Mon Sep 17 00:00:00 2001 From: wxip <3455781820@qq.com> Date: Tue, 9 Jul 2024 09:12:28 +0800 Subject: [PATCH] :bug: fix: option api data scope (#113) --- apis/option.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apis/option.go b/apis/option.go index eabf7c8..9076b3a 100644 --- a/apis/option.go +++ b/apis/option.go @@ -2,6 +2,7 @@ package apis import ( "github.com/gin-gonic/gin" + "github.com/mss-boot-io/mss-boot-admin/center" "github.com/mss-boot-io/mss-boot/pkg/response" "github.com/mss-boot-io/mss-boot/pkg/response/actions" "github.com/mss-boot-io/mss-boot/pkg/response/controller" @@ -25,6 +26,7 @@ func init() { controller.WithModel(new(models.Option)), controller.WithSearch(new(dto.OptionSearch)), controller.WithModelProvider(actions.ModelProviderGorm), + controller.WithScope(center.Default.Scope), ), } response.AppendController(e)