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

Method FindFounder

models/relationship.go:51–57  ·  view source on GitHub ↗

查询指定书籍的创始人.

(bookId int)

Source from the content-addressed store, hash-verified

49
50//查询指定书籍的创始人.
51func (m *Relationship) FindFounder(bookId int) (*Relationship, error) {
52 o := orm.NewOrm()
53
54 err := o.QueryTable(m.TableNameWithPrefix()).Filter("book_id", bookId).Filter("role_id", 0).One(m)
55
56 return m, err
57}
58
59func (m *Relationship) UpdateRoleId(bookId, memberId, roleId int) (*Relationship, error) {
60 o := orm.NewOrm()

Callers 1

TransferMethod · 0.80

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected