示例#1
0
// view for list model data
func (this *CategoryAdminRouter) List() {
	var cats []models.Category
	qs := models.Categories().RelatedSel()
	if err := this.SetObjects(qs, &cats); err != nil {
		this.Data["Error"] = err
		beego.Error(err)
	}
}
示例#2
0
func (this *CategoryAdminRouter) ObjectQs() orm.QuerySeter {
	return models.Categories().RelatedSel()
}