From 89c1582bac5c8202d4516473cf9fc0dee9abcb5f Mon Sep 17 00:00:00 2001 From: cjy Date: Thu, 4 Jun 2026 14:15:56 +0800 Subject: [PATCH] =?UTF-8?q?Update:=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8F=B0=E4=B8=89=E8=A1=A8=E6=96=B0=E5=A2=9Ebundle=5Ftask=5Fty?= =?UTF-8?q?pe=E5=AD=97=E6=AE=B5,=E6=94=AF=E6=8C=81=E5=85=88=E7=94=A8?= =?UTF-8?q?=E5=90=8E=E4=BB=98=E4=BB=BB=E5=8A=A1=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/model/task.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/model/task.go b/internal/model/task.go index fe2bbbe..489b218 100644 --- a/internal/model/task.go +++ b/internal/model/task.go @@ -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 {