user_feedback.go 846 B

12345678910111213141516171819202122232425262728
  1. package rai_serve
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. )
  5. // 权益服务明细表
  6. type CygxUserFeedback struct {
  7. UserFeedbackId int `orm:"column(user_feedback_id);pk";comment:"主键id"`
  8. Content string `comment:"服务内容说明"`
  9. UserId int `comment:"用户ID"`
  10. Mobile string `comment:"手机号"`
  11. Email string `comment:"邮箱"`
  12. CompanyId int `comment:"公司ID"`
  13. CompanyName string `comment:"公司名称"`
  14. RealName string `comment:"用户实际名称"`
  15. CreateTime string `comment:"创建时间"`
  16. }
  17. func GetCygxUserFeedbackList(condition string, pars []interface{}) (items []*CygxUserFeedback, err error) {
  18. o := orm.NewOrm()
  19. sql := `SELECT *
  20. FROM
  21. cygx_user_feedback
  22. WHERE 1 = 1 ` + condition
  23. _, err = o.Raw(sql, pars).QueryRows(&items)
  24. return
  25. }