(token string)
| 66 | } |
| 67 | |
| 68 | func (m *Auth) GetByToken(token string) (auth Auth) { |
| 69 | orm.NewOrm().QueryTable(m).Filter("token", token).One(&auth) |
| 70 | return |
| 71 | } |
| 72 | |
| 73 | func (m *Auth) DeleteByToken(token string) { |
| 74 | orm.NewOrm().QueryTable(m).Filter("token", token).Delete() |