MCPcopy Index your code
hub / github.com/TruthHun/BookStack / IsSignToday

Method IsSignToday

models/sign.go:70–74  ·  view source on GitHub ↗

今天是否已签到

(uid int)

Source from the content-addressed store, hash-verified

68
69// 今天是否已签到
70func (m *Sign) IsSignToday(uid int) bool {
71 s := &Sign{}
72 orm.NewOrm().QueryTable(m).Filter("uid", uid).Filter("day", time.Now().Format(signDayLayout)).One(s, "id")
73 return s.Id > 0
74}
75
76func (m *Sign) LatestSignTime(uid int) (date int) {
77 s := &Sign{}

Callers 2

SignMethod · 0.95
PrepareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected