MCPcopy Index your code
hub / github.com/TruthHun/DocHub / GetCategoriesById

Method GetCategoriesById

models/CategoryModel.go:94–105  ·  view source on GitHub ↗
(id ...interface{})

Source from the content-addressed store, hash-verified

92}
93
94func (this *Category) GetCategoriesById(id ...interface{}) (cates []Category, err error) {
95 if len(id) == 0 {
96 return
97 }
98
99 _, err = orm.NewOrm().QueryTable(this).Filter("Id__in", id...).All(&cates)
100 if err != nil {
101 helper.Logger.Error(err.Error())
102 }
103
104 return
105}

Callers 1

GetMethod · 0.80

Calls 1

AllMethod · 0.80

Tested by

no test coverage detected