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