From 2e593fa11d5d2b4289a7422563a9c410a9a9c59e Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 3 Dec 2024 18:43:48 +0800 Subject: [PATCH] update --- src/implement/egg_friend_circle_basic_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/egg_friend_circle_basic_implement.go b/src/implement/egg_friend_circle_basic_implement.go index b5fd2ad..8720ae6 100644 --- a/src/implement/egg_friend_circle_basic_implement.go +++ b/src/implement/egg_friend_circle_basic_implement.go @@ -30,7 +30,7 @@ func (e EggFriendCircleBasicDb) EggFriendCircleBasicGetOne() (*model.EggFriendCi func (e EggFriendCircleBasicDb) EggFriendCircleBasicInsert(m *model.EggFriendCircleBasic) (int, error) { _, err := e.Db.InsertOne(m) if err != nil { - return 0, err + return 0, zhios_order_relate_logx.Error(err.Error()) } return m.Id, nil } @@ -38,7 +38,7 @@ func (e EggFriendCircleBasicDb) EggFriendCircleBasicInsert(m *model.EggFriendCir func (e EggFriendCircleBasicDb) UpdateEggFriendCircleBasic(m *model.EggFriendCircleBasic, columns ...string) (int64, error) { affected, err := e.Db.Where("id =?", m.Id).Cols(columns...).Update(m) if err != nil { - return 0, err + return 0, zhios_order_relate_logx.Error(err.Error()) } return affected, nil }