user_business_card.go 963 B

1234567891011121314151617181920212223242526272829
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxUserBusinessCard struct {
  7. UserId int `comment:"用户ID"`
  8. Mobile string `comment:"手机号"`
  9. Email string `comment:"邮箱"`
  10. CompanyName string `comment:"公司名称"`
  11. RealName string `comment:"用户实际名称"`
  12. InviteName string `comment:"用户实际名称"`
  13. CreateTime time.Time `comment:"创建时间"`
  14. ModifyTime time.Time `comment:"修改时间"`
  15. RegisterPlatform int `comment:"来源 1小程序,2:网页"`
  16. }
  17. func GetCygxUserBusinessCardList(condition string, pars []interface{}, startSize, pageSize int) (items []*CygxUserBusinessCard, err error) {
  18. o := orm.NewOrmUsingDB("hz_cygx")
  19. sql := `SELECT *
  20. FROM
  21. cygx_user_business_card
  22. WHERE 1 = 1 ` + condition
  23. sql += ` LIMIT ?,? `
  24. _, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
  25. return
  26. }