This website works better with JavaScript.
Home
Explore
Help
Sign In
go_rely_warehouse
/
zyos_model
generated from
go_rely_warehouse/test
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
3
Wiki
Activity
Browse Source
果园
master
huangjiajun
4 months ago
parent
3bfa840346
commit
53198786e5
2 changed files
with
9 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/dao/happy_orchard_six_energy_ball_dao.go
+8
-0
src/implement/happy_orchard_six_energy_ball_db.go
+ 1
- 0
src/dao/happy_orchard_six_energy_ball_dao.go
View File
@@ -7,4 +7,5 @@ import (
type HappyOrchardSixEnergyBallDao interface {
type HappyOrchardSixEnergyBallDao interface {
GetHappyOrchardSixEnergyBall(sess *xorm.Session, uid, signTime, ballId int) (m *models.HappyOrchardSixEnergyBall, err error)
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
View File
@@ -26,3 +26,11 @@ func (h HappyOrchardSixEnergyBallDb) GetHappyOrchardSixEnergyBall(sess *xorm.Ses
}
}
return m, nil
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
}
Write
Preview
Loading…
Cancel
Save