batch_msg.gen.go 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameBatchMsg = "batch_msg"
  10. // BatchMsg 批量消息表
  11. type BatchMsg struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  16. TaskName string `gorm:"column:task_name;comment:群发任务名称" json:"task_name"` // 群发任务名称
  17. Status int64 `gorm:"column:status;comment:状态 0 未开始 1 发送中 2 发送完成 3 发送中止" json:"status"` // 状态 0 未开始 1 发送中 2 发送完成 3 发送中止
  18. BatchNo string `gorm:"column:batch_no;comment:批次号" json:"batch_no"` // 批次号
  19. Fromwxid string `gorm:"column:fromwxid;comment:发送方微信ID" json:"fromwxid"` // 发送方微信ID
  20. Msg string `gorm:"column:msg;comment:内容" json:"msg"` // 内容
  21. Tagids string `gorm:"column:tagids;comment:需要发送的tagids" json:"tagids"` // 需要发送的tagids
  22. Tag string `gorm:"column:tag;comment:发送规则 all 全部 tag1,tag2 按tag发送" json:"tag"` // 发送规则 all 全部 tag1,tag2 按tag发送
  23. Total int64 `gorm:"column:total;comment:总数" json:"total"` // 总数
  24. Success int64 `gorm:"column:success;comment:成功数量" json:"success"` // 成功数量
  25. Fail int64 `gorm:"column:fail;comment:失败数量" json:"fail"` // 失败数量
  26. StartTime time.Time `gorm:"column:start_time;comment:开始时间" json:"start_time"` // 开始时间
  27. StopTime time.Time `gorm:"column:stop_time;comment:结束时间" json:"stop_time"` // 结束时间
  28. SendTime time.Time `gorm:"column:send_time;comment:发送时间" json:"send_time"` // 发送时间
  29. Type int64 `gorm:"column:type;default:1;comment:1-群发消息 2-群发朋友圈" json:"type"` // 1-群发消息 2-群发朋友圈
  30. OrganizationID int64 `gorm:"column:organization_id;comment:机构ID" json:"organization_id"` // 机构ID
  31. Ctype int64 `gorm:"column:ctype;default:1;comment:内容类型:1-微信 2-whatsapp 3-企微" json:"ctype"` // 内容类型:1-微信 2-whatsapp 3-企微
  32. Cc string `gorm:"column:cc;comment:国家区号" json:"cc"` // 国家区号
  33. Phone string `gorm:"column:phone;comment:手机号" json:"phone"` // 手机号
  34. TemplateName string `gorm:"column:template_name;comment:模板名" json:"template_name"` // 模板名
  35. TemplateCode string `gorm:"column:template_code;comment:模板code" json:"template_code"` // 模板code
  36. Lang string `gorm:"column:lang;comment:模板语言" json:"lang"` // 模板语言
  37. }
  38. // TableName BatchMsg's table name
  39. func (*BatchMsg) TableName() string {
  40. return TableNameBatchMsg
  41. }