customer_comment.go 370 B

1234567891011121314151617181920
  1. package models
  2. import "rdluck_tools/orm"
  3. type CustomerComment struct {
  4. Id int
  5. HeadImgUrl string
  6. CustomerName string
  7. CompanyName string
  8. Comment string
  9. }
  10. func GetCustomerComment() (item []*CustomerComment, err error) {
  11. sql := ` SELECT * FROM customer_comment `
  12. o := orm.NewOrm()
  13. o.Using("rddp")
  14. _, err = o.Raw(sql).QueryRows(&item)
  15. return
  16. }