MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Update

Method Update

models/friendlink.go:30–33  ·  view source on GitHub ↗

根据字段更新友链

(id int, field string, value interface{})

Source from the content-addressed store, hash-verified

28
29//根据字段更新友链
30func (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//删除友情链接
36func (this *FriendLink) Del(id int) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected