123456789101112131415161718 |
- package cygx
- import (
- "github.com/beego/beego/v2/client/orm"
- )
- type AskEmailRep struct {
- Name string `description:"姓名"`
- Email string `description:"邮箱"`
- Mobile string `description:"手机号"`
- }
- func GetAskEmail() (item []*AskEmailRep, err error) {
- o := orm.NewOrm()
- sql := `SELECT * FROM cygx_activity_ask_email`
- _, err = o.Raw(sql).QueryRows(&item)
- return
- }
|