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

Method TableUnique

models/sign.go:63–67  ·  view source on GitHub ↗

多字段唯一键

()

Source from the content-addressed store, hash-verified

61
62// 多字段唯一键
63func (m *Sign) TableUnique() [][]string {
64 return [][]string{
65 []string{"uid", "day"},
66 }
67}
68
69// 今天是否已签到
70func (m *Sign) IsSignToday(uid int) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected