1234567891011121314151617181920 |
- package models
- import "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
- }
|