Update:任务管理台三表新增bundle_task_type字段,支持先用后付任务区分

This commit is contained in:
cjy 2026-06-04 14:15:56 +08:00
parent 2fd6a2429c
commit 89c1582bac

View File

@ -34,6 +34,7 @@ type TaskManagement struct {
TaskAssigneeNum string `gorm:"column:task_assignee_num;comment:最后一次的任务指派人账号" json:"taskAssigneeNum"`
ProgressCount int `gorm:"column:progress_count;comment:进行中的任务数量" json:"progressCount"`
CompleteCount int `gorm:"column:complete_count;comment:已完成的任务数量" json:"completeCount"`
BundleTaskType int `gorm:"column:bundle_task_type;type:tinyint;not null;default:1;comment:任务所属套餐类型 1:基础套餐 2:先用后付套餐;index:idx_bundle_task_type" json:"bundleTaskType"`
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间" json:"updatedAt"`
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11);index:idx_deleted_at" json:"deletedAt"`
@ -79,6 +80,7 @@ type TaskAssignRecords struct {
CompletePostCount int `gorm:"column:complete_post_count;comment:已完成图文数" json:"completePostCount"`
CompleteDataCount int `gorm:"column:complete_data_count;comment:已完成数据数" json:"completeDataCount"`
CompleteReportCount int `gorm:"column:complete_report_count;comment:已完成竞品报告数" json:"completeReportCount"`
BundleTaskType int `gorm:"column:bundle_task_type;type:tinyint;not null;default:1;comment:任务所属套餐类型 1:基础套餐 2:先用后付套餐;index:idx_bundle_task_type" json:"bundleTaskType"`
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间;index:idx_updated_at" json:"updatedAt"`
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11);index:idx_assign_deleted_at" json:"deletedAt"`
@ -157,6 +159,8 @@ type TaskWorkLog struct {
CreatedAt int `gorm:"column:created_at;type:int(11);comment:任务日志创建时间" json:"taskCreatedAt"`
UpdatedAt int `gorm:"column:updated_at;type:int(11);comment:任务日志更新时间" json:"taskUpdatedAt"`
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11);index:idx_work_log_deleted_at" json:"taskDeletedAt"`
BundleTaskType int `gorm:"column:bundle_task_type;type:tinyint;not null;default:1;comment:任务所属套餐类型 1:基础套餐 2:先用后付套餐;index:idx_bundle_task_type" json:"bundleTaskType"`
}
func (t *TaskWorkLog) TableName() string {