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

Method GetCode

models/wechat_code.go:27–31  ·  view source on GitHub ↗
(bookId int)

Source from the content-addressed store, hash-verified

25}
26
27func (this *WechatCode) GetCode(bookId int) (path string) {
28 m := NewWechatCode()
29 orm.NewOrm().QueryTable(m).Filter("book_id", bookId).One(m)
30 return m.Path
31}
32
33func (this *WechatCode) Delete(bookId int) {
34 orm.NewOrm().QueryTable(this).Filter("book_id", bookId).Delete()

Callers 2

IndexMethod · 0.95
ReadMethod · 0.95

Calls 1

NewWechatCodeFunction · 0.85

Tested by

no test coverage detected