package dbstruct import ( "service/bizcommon/util" ) type TextAuditTask struct { Id *string `json:"id" bson:"_id"` // 文字审核任务表id AuditedText *string `json:"audited_text" bson:"audited_text"` // 待审核文字内容 OldText *string `json:"old_text" bson:"old_text"` // 旧文字内容 RouteUrl *string `json:"route_url" bson:"route_url"` // 路由URL AssociativeDatabase *string `json:"associative_database" bson:"associative_database"` // 关联数据库 AssociativeTableName *string `json:"associative_table_name" bson:"associative_table_name"` // 关联表名 AssociativeTableId *int64 `json:"associative_table_id" bson:"associative_table_id"` // 关联表主键ID AssociativeTableColumn *string `json:"associative_table_column" bson:"associative_table_column"` // 关联表字段 BatchId *string `json:"batch_id" bson:"batch_id"` // 批次号 TextAuditId *string `json:"text_audit_id" bson:"text_audit_id"` // 关联文字审核Id号 IsAligned *int64 `json:"is_aligned" bson:"is_aligned"` // 是否已经对齐(详见consts->status->aligned) Status *int64 `json:"status" bson:"status"` // 审核状态 Remarks *string `json:"remarks" bson:"remarks"` // 备注 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记 TextAudit *TextAudit // 任务的结果 } func (p *TextAuditTask) IsEmpty() bool { if p == nil { return true } return p.Id == nil || p.AuditedText == nil || util.DerefString(p.AssociativeDatabase) == "" || util.DerefString(p.AssociativeTableName) == "" || p.AssociativeTableId == nil || util.DerefString(p.AssociativeTableColumn) == "" }