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

Struct FriendLink

models/friendlink.go:8–15  ·  view source on GitHub ↗

友链数据表

Source from the content-addressed store, hash-verified

6
7//友链数据表
8type FriendLink struct {
9 Id int //自增主键
10 Sort int //排序
11 Link string `orm:"unique;size(128)"` //链接地址
12 Title string //链接名称
13 Remark string `orm:"default()"` // 备注
14 Status bool `orm:"default(1)"` //状态
15}
16
17//添加友情链接
18func (this *FriendLink) Add(title, link string) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected