activity_fastsearch_keywords.go 535 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. )
  5. type ActivityFastsearchKeywords struct {
  6. Id int `description:"活动类型id"`
  7. KeyWord string `description:"关键词"`
  8. }
  9. type ActivityFastsearchKeywordsListResp struct {
  10. List []*ActivityFastsearchKeywords
  11. }
  12. //列表
  13. func GetActivityFastsearchKeywordsList() (items []*ActivityFastsearchKeywords, err error) {
  14. o := orm.NewOrm()
  15. sql := `SELECT * FROM cygx_activity_fastsearch_keywords ORDER BY sort DESC`
  16. _, err = o.Raw(sql).QueryRows(&items)
  17. return
  18. }