ik_word_map.go 443 B

123456789101112131415161718
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. )
  5. type CygxIkWordMap struct {
  6. KeyWord string `description:"手机号"`
  7. KeyWordMap string `description:"地区编码 国内默认为空"`
  8. }
  9. // 获取详情
  10. func GetCygxCygxIkWordMapDetail(keyWord string) (item *CygxIkWordMap, err error) {
  11. o := orm.NewOrm()
  12. sql := `SELECT * FROM cygx_ik_word_map WHERE key_word=? `
  13. err = o.Raw(sql, keyWord).QueryRow(&item)
  14. return
  15. }