(id int, field string, value interface{})
| 40 | } |
| 41 | |
| 42 | func (m *Banner) Update(id int, field string, value interface{}) (err error) { |
| 43 | _, err = orm.NewOrm().QueryTable(m).Filter("id", id).Update(orm.Params{field: value}) |
| 44 | if err == orm.ErrNoRows { |
| 45 | err = nil |
| 46 | } |
| 47 | return |
| 48 | } |
| 49 | |
| 50 | func (m *Banner) Delete(id int) (err error) { |
| 51 | var banner Banner |
nothing calls this directly
no outgoing calls
no test coverage detected