home_pc.go 254 B

12345678910
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. func GetColumnList() (items []*Classify, err error) {
  4. o := orm.NewOrmUsingDB("rddp")
  5. sql := `SELECT * FROM classify WHERE is_home_column=1`
  6. _, err = o.Raw(sql).QueryRows(&items)
  7. return
  8. }