query.go 235 B

123456789
  1. package customer_comment
  2. import "hongze/hongze_yb/global"
  3. func GetCustomerComment() (items []*CustomerComment, err error) {
  4. sql := ` SELECT * FROM customer_comment `
  5. err = global.MYSQL["rddp"].Raw(sql).Scan(&items).Error
  6. return
  7. }