12345678910111213141516171819 |
- package models
- import "github.com/rdlucklib/rdluck_tools/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.NewOrm()
- o.Using("rddp")
- _, err = o.Raw(sql).QueryRows(&item)
- return
- }
|