MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / GetSignInByUID

Method GetSignInByUID

plugin/score/model.go:103–109  ·  view source on GitHub ↗

GetSignInByUID 取得签到次数

(uid int64)

Source from the content-addressed store, hash-verified

101
102// GetSignInByUID 取得签到次数
103func (sdb *scoredb) GetSignInByUID(uid int64) (si signintable) {
104 sdb.scoremu.Lock()
105 defer sdb.scoremu.Unlock()
106 db := sdb.db
107 db.Model(&signintable{}).FirstOrCreate(&si, "uid = ? ", uid)
108 return si
109}
110
111// InsertOrUpdateSignInCountByUID 插入或更新签到次数
112func (sdb *scoredb) InsertOrUpdateSignInCountByUID(uid int64, count int) (err error) {

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected