瀏覽代碼

果园

master
huangjiajun 4 月之前
父節點
當前提交
53198786e5
共有 2 個檔案被更改,包括 9 行新增0 行删除
  1. +1
    -0
      src/dao/happy_orchard_six_energy_ball_dao.go
  2. +8
    -0
      src/implement/happy_orchard_six_energy_ball_db.go

+ 1
- 0
src/dao/happy_orchard_six_energy_ball_dao.go 查看文件

@@ -7,4 +7,5 @@ import (

type HappyOrchardSixEnergyBallDao interface {
GetHappyOrchardSixEnergyBall(sess *xorm.Session, uid, signTime, ballId int) (m *models.HappyOrchardSixEnergyBall, err error)
GetHappyOrchardSixEnergyBallAll(uid, signTime int) (mm *[]models.HappyOrchardSixEnergyBall, err error)
}

+ 8
- 0
src/implement/happy_orchard_six_energy_ball_db.go 查看文件

@@ -26,3 +26,11 @@ func (h HappyOrchardSixEnergyBallDb) GetHappyOrchardSixEnergyBall(sess *xorm.Ses
}
return m, nil
}
func (h HappyOrchardSixEnergyBallDb) GetHappyOrchardSixEnergyBallAll(uid, signTime int) (mm *[]models.HappyOrchardSixEnergyBall, err error) {
var m []models.HappyOrchardSixEnergyBall
err = h.Db.Where("uid=? and sign_time=?", uid, signTime).Find(m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
return &m, nil
}

Loading…
取消
儲存