MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Find

Method Find

models/category.go:112–116  ·  view source on GitHub ↗

查询单个分类

(id int)

Source from the content-addressed store, hash-verified

110
111//查询单个分类
112func (this *Category) Find(id int) (cate Category) {
113 cate.Id = id
114 orm.NewOrm().Read(&cate)
115 return cate
116}
117
118// 用户收藏了的书籍的分类
119func (m *Category) CategoryOfUserCollection(uid int, forAPI ...bool) (cates []Category) {

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected