package models

import "github.com/beego/beego/v2/client/orm"

func GetColumnList() (items []*Classify, err error) {
	o := orm.NewOrmUsingDB("rddp")
	sql := `SELECT * FROM classify WHERE is_home_column=1`
	_, err = o.Raw(sql).QueryRows(&items)
	return
}