From 9227bd2be134722989a90d8bb60ff50f32c03d45 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Wed, 4 Sep 2024 20:25:02 +0800 Subject: [PATCH] =?UTF-8?q?perf=F0=9F=91=8C:=20format=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/sys_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/admin/service/sys_config.go b/app/admin/service/sys_config.go index ed3c6949..016177f4 100644 --- a/app/admin/service/sys_config.go +++ b/app/admin/service/sys_config.go @@ -32,7 +32,9 @@ func (e *SysConfig) GetPage(c *dto.SysConfigGetPageReq, list *[]models.SysConfig // Get 获取SysConfig对象 func (e *SysConfig) Get(d *dto.SysConfigGetReq, model *models.SysConfig) error { - err := e.Orm.FirstOrInit(model, d.GetId()).Error + err := e.Orm. + FirstOrInit(model, d.GetId()). + Error if err != nil { e.Log.Errorf("db error:%s", err) _ = e.AddError(err)