cygx_seller_mobile_map.go 569 B

12345678910111213141516171819
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. //权益销售手机号映射关系表
  4. type CygxSellerMobileMap struct {
  5. RealName string `description:"销售姓名"`
  6. Mobile string `description:"销售手机号"`
  7. ServerRealName string `description:"服务销售姓名"`
  8. ServerMobile string `description:"服务销售手机号"`
  9. }
  10. func GetCygxSellerMobileMap() (items []*CygxSellerMobileMap, err error) {
  11. o := orm.NewOrm()
  12. sql := `SELECT * FROM cygx_seller_mobile_map LIMIT 100 `
  13. _, err = o.Raw(sql).QueryRows(&items)
  14. return
  15. }