123456789101112131415161718192021222324252627282930313233343536 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameBatchMsgCopy1 = "batch_msg_copy1"
- type BatchMsgCopy1 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"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- Status int64 `gorm:"column:status;comment:状态 0 未开始 1 发送中 2 发送完成 3 发送中止" json:"status"`
- BatchNo string `gorm:"column:batch_no;comment:批次号" json:"batch_no"`
- Fromwxid string `gorm:"column:fromwxid;comment:发送方微信ID" json:"fromwxid"`
- Msg string `gorm:"column:msg;comment:内容" json:"msg"`
- Tag string `gorm:"column:tag;comment:发送规则 all 全部 tag1,tag2 按tag发送" json:"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"`
- }
- func (*BatchMsgCopy1) TableName() string {
- return TableNameBatchMsgCopy1
- }
|