classify.go 643 B

123456789101112131415161718192021
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. type ClassifyListReq struct {
  4. Source int `description:"渠道编码"`
  5. }
  6. func (obj *BaseFromTradeGuangzhouClassify) GetBaseFromTradeGuangzhouClassifyAll() (list []*BaseFromTradeGuangzhouClassify, err error) {
  7. o := orm.NewOrm()
  8. sql := `SELECT * FROM base_from_trade_guangzhou_classify `
  9. _, err = o.Raw(sql).QueryRows(&list)
  10. return list, err
  11. }
  12. func (obj *BaseFromIcpiClassify) GetBaseFromIcpiClassifyAll() (list []*BaseFromIcpiClassify, err error) {
  13. o := orm.NewOrm()
  14. sql := `SELECT * FROM base_from_icpi_classify `
  15. _, err = o.Raw(sql).QueryRows(&list)
  16. return list, err
  17. }