article_celue_push.go 614 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. )
  5. type CygxArticleCeluePush struct {
  6. Id int `description:"新ID"`
  7. ArticleId int `description:"文章ID"`
  8. IsHandle int `description:"文章ID"`
  9. Action string `description:"日志类型:add,edit,move"`
  10. ModifyTime string `description:"修改时间"`
  11. CreateTime string `description:"创建时间"`
  12. }
  13. func GetArticleCeluePushList() (item []*CygxArticleCeluePush, err error) {
  14. o := orm.NewOrm()
  15. sql := ` SELECT * FROM cygx_article_celue_push WHERE is_handle = 0 `
  16. _, err = o.Raw(sql).QueryRows(&item)
  17. return
  18. }