瀏覽代碼

update

master
shenjiachi 1 天之前
父節點
當前提交
2e593fa11d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/implement/egg_friend_circle_basic_implement.go

+ 2
- 2
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
}

Loading…
取消
儲存