(uid int)
| 74 | } |
| 75 | |
| 76 | func (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 | // 是否未断签 |
| 86 | func (m *Sign) IsContinuousSign(uid int) bool { |
no outgoing calls
no test coverage detected