user_template_record.go 458 B

1234567891011121314151617181920212223
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. type UserTemplateRecord struct {
  4. Id int `orm:"column(id);pk"`
  5. UserId int
  6. OpenId string
  7. Resource string
  8. SendData string
  9. Result string
  10. CreateDate string
  11. CreateTime string
  12. SendStatus int
  13. SendType int
  14. }
  15. // 添加banner
  16. func AddUserTemplateRecord(item *UserTemplateRecord) (err error) {
  17. o := orm.NewOrmUsingDB("weekly_report")
  18. _, err = o.Insert(item)
  19. return
  20. }