user_template_record.go 694 B

123456789101112131415161718192021
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. type UserTemplateRecord struct {
  4. Id int `orm:"pk" description:"id"`
  5. UserId int `description:"用户id"`
  6. OpenId string `description:"用户openid"`
  7. SendData string `description:"发送内容"`
  8. Result string `description:"响应结果"`
  9. CreateDate string `description:"创建日期"`
  10. CreateTime string `description:"创建时间"`
  11. SendStatus int `description:"发送状态"` // 1:发送成功,0:发送失败
  12. SendType int `description:"发送消息类型"` // 1:报告模板消息
  13. }
  14. func (u *UserTemplateRecord) Insert() (err error) {
  15. o := orm.NewOrm()
  16. _, err = o.Insert(u)
  17. return
  18. }