package models import "github.com/beego/beego/v2/client/orm" type ClassifyListReq struct { Source int `description:"渠道编码"` } func (obj *BaseFromTradeGuangzhouClassify) GetBaseFromTradeGuangzhouClassifyAll() (list []*BaseFromTradeGuangzhouClassify, err error) { o := orm.NewOrm() sql := `SELECT * FROM base_from_trade_guangzhou_classify ` _, err = o.Raw(sql).QueryRows(&list) return list, err } func (obj *BaseFromIcpiClassify) GetBaseFromIcpiClassifyAll() (list []*BaseFromIcpiClassify, err error) { o := orm.NewOrm() sql := `SELECT * FROM base_from_icpi_classify ` _, err = o.Raw(sql).QueryRows(&list) return list, err }