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

Method TableUnique

models/book_category.go:17–21  ·  view source on GitHub ↗

多字段唯一键

()

Source from the content-addressed store, hash-verified

15
16// 多字段唯一键
17func (this *BookCategory) TableUnique() [][]string {
18 return [][]string{
19 []string{"BookId", "CategoryId"},
20 }
21}
22
23//根据书籍id查询分类id
24func (this *BookCategory) GetByBookId(book_id int) (cates []Category, rows int64, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected