Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TruthHun/BookStack
/ Del
Method
Del
models/friendlink.go:36–40 ·
view source on GitHub ↗
删除友情链接
(id int)
Source
from the content-addressed store, hash-verified
34
35
//删除友情链接
36
func
(this *FriendLink) Del(id int) (err error) {
37
var
link = FriendLink{Id: id}
38
_, err = orm.NewOrm().Delete(&link)
39
return
40
}
41
42
//查询友链列表
43
//all表示是否查询全部,当为false时,只查询启用状态的友链,否则查询全部
Callers
nothing calls this directly
Calls
1
Delete
Method · 0.45
Tested by
no test coverage detected