友链数据表
| 6 | |
| 7 | //友链数据表 |
| 8 | type 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 | //添加友情链接 |
| 18 | func (this *FriendLink) Add(title, link string) (err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected