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

Method TableUnique

models/fans.go:26–30  ·  view source on GitHub ↗

多字段唯一键

()

Source from the content-addressed store, hash-verified

24
25// 多字段唯一键
26func (this *Fans) TableUnique() [][]string {
27 return [][]string{
28 []string{"Uid", "FansId"},
29 }
30}
31
32//关注和取消关注
33func (this *Fans) FollowOrCancel(uid, fansId int) (cancel bool, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected