From 0b135e3aba333e413e5d3fcf639d4588cb26d90e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 21 May 2024 14:35:52 +0800 Subject: [PATCH] update --- src/implement/happy_orchard_user_waters_db.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/implement/happy_orchard_user_waters_db.go b/src/implement/happy_orchard_user_waters_db.go index 53a472f..67841b1 100644 --- a/src/implement/happy_orchard_user_waters_db.go +++ b/src/implement/happy_orchard_user_waters_db.go @@ -7,20 +7,20 @@ import ( "xorm.io/xorm" ) -type happyOrchardUserWatersDb struct { +type HappyOrchardUserWatersDb struct { Db *xorm.Engine Sess *xorm.Session } func NewHappyOrchardUserWatersDb(engine *xorm.Engine) dao.HappyOrchardUserWatersDao { - return &happyOrchardUserWatersDb{Db: engine} + return &HappyOrchardUserWatersDb{Db: engine} } func NewHappyOrchardUserWatersSess(sess *xorm.Session) dao.HappyOrchardUserWatersDao { - return &happyOrchardUserWatersDb{Sess: sess} + return &HappyOrchardUserWatersDb{Sess: sess} } -func (h happyOrchardUserWatersDb) GetHappyOrchardUserWaters(uid int) (m *models.HappyOrchardUserWaters, err error) { +func (h HappyOrchardUserWatersDb) GetHappyOrchardUserWaters(uid int) (m *models.HappyOrchardUserWaters, err error) { m = new(models.HappyOrchardUserWaters) has, err := h.Db.Where("uid =?", uid).Get(m) if err != nil { @@ -31,7 +31,7 @@ func (h happyOrchardUserWatersDb) GetHappyOrchardUserWaters(uid int) (m *models. } return m, nil } -func (h happyOrchardUserWatersDb) GetHappyOrchardUserWatersSess(uid int) (m *models.HappyOrchardUserWaters, err error) { +func (h HappyOrchardUserWatersDb) GetHappyOrchardUserWatersSess(uid int) (m *models.HappyOrchardUserWaters, err error) { m = new(models.HappyOrchardUserWaters) has, err := h.Sess.Where("uid =?", uid).Get(m) if err != nil {