123456789101112131415161718 |
- package models
- import "github.com/beego/beego/v2/client/orm"
- type CustomerComment struct {
- Id int
- HeadImgUrl string
- CustomerName string
- CompanyName string
- Comment string
- }
- func GetCustomerComment() (item []*CustomerComment, err error) {
- sql := ` SELECT * FROM customer_comment `
- o := orm.NewOrmUsingDB("rddp")
- _, err = o.Raw(sql).QueryRows(&item)
- return
- }
|