(id ...interface{})
| 92 | } |
| 93 | |
| 94 | func (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 | } |