根据字段更新友链
(id int, field string, value interface{})
| 28 | |
| 29 | //根据字段更新友链 |
| 30 | func (this *FriendLink) Update(id int, field string, value interface{}) (err error) { |
| 31 | _, err = orm.NewOrm().QueryTable(this).Filter("id", id).Update(orm.Params{field: value}) |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | //删除友情链接 |
| 36 | func (this *FriendLink) Del(id int) (err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected