(uid int)
| 234 | } |
| 235 | |
| 236 | func (*Sign) LatestOne(uid int) (s Sign) { |
| 237 | orm.NewOrm().QueryTable(&s).Filter("uid", uid).OrderBy("-id").One(&s) |
| 238 | return |
| 239 | } |
| 240 | |
| 241 | func (m *Sign) SortedByPeriod(limit int, prd period, withCache ...bool) (members []Member) { |
| 242 |