activity_ask_email.go 513 B

123456789101112131415161718
  1. package cygx
  2. import "github.com/beego/beego/v2/client/orm"
  3. type AskEmailRep struct {
  4. Name string `description:"姓名"`
  5. Email string `description:"邮箱"`
  6. Mobile string `description:"手机号"`
  7. ChartPermissionName string `description:"权限名称"`
  8. AdminId int
  9. }
  10. func GetAskEmail() (item []*AskEmailRep, err error) {
  11. o := orm.NewOrmUsingDB("hz_cygx")
  12. sql := `SELECT * FROM cygx_activity_ask_email`
  13. _, err = o.Raw(sql).QueryRows(&item)
  14. return
  15. }