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

Method LatestSignTime

models/sign.go:76–83  ·  view source on GitHub ↗
(uid int)

Source from the content-addressed store, hash-verified

74}
75
76func (m *Sign) LatestSignTime(uid int) (date int) {
77 s := &Sign{}
78 err := orm.NewOrm().QueryTable(m).Filter("uid", uid).OrderBy("-id").One(s)
79 if err != nil {
80 return
81 }
82 return int(s.CreatedAt.Unix())
83}
84
85// 是否未断签
86func (m *Sign) IsContinuousSign(uid int) bool {

Callers 3

SignTodayMethod · 0.80
SignStatusMethod · 0.80
GetUserMoreInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected