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