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)