From c62e7fe9e2fbcb245306d88df53b45f5015a2615 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 13 Nov 2024 17:06:09 +0800 Subject: [PATCH] update --- src/implement/egg_energy_basic_setting_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/egg_energy_basic_setting_implement.go b/src/implement/egg_energy_basic_setting_implement.go index ede6f46..3ed7ea7 100644 --- a/src/implement/egg_energy_basic_setting_implement.go +++ b/src/implement/egg_energy_basic_setting_implement.go @@ -42,10 +42,10 @@ func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOneByParams(params map[ } func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOne() (*model.EggEnergyBasicSetting, error) { - var m *model.EggEnergyBasicSetting + var m model.EggEnergyBasicSetting _, err := e.Db.Where("id >= ?", 1).Get(&m) if err != nil { return nil, zhios_order_relate_logx.Error(err.Error()) } - return m, nil + return &m, nil }