(bookId int)
| 25 | } |
| 26 | |
| 27 | func (this *WechatCode) GetCode(bookId int) (path string) { |
| 28 | m := NewWechatCode() |
| 29 | orm.NewOrm().QueryTable(m).Filter("book_id", bookId).One(m) |
| 30 | return m.Path |
| 31 | } |
| 32 | |
| 33 | func (this *WechatCode) Delete(bookId int) { |
| 34 | orm.NewOrm().QueryTable(this).Filter("book_id", bookId).Delete() |
no test coverage detected