package dao import "lone-services/pkg/utils" // ReviewChange 审核变更快照(产品/门店/地址) type ReviewChange struct { Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Type uint8 `gorm:"column:type;type:tinyint unsigned;not null;default:0;comment:业务类型:1产品 2门店 3地址" json:"type"` BizId int64 `gorm:"column:biz_id;type:int;not null;default:0;comment:业务ID" json:"biz_id"` TaskId string `gorm:"column:task_id;type:varchar(64);not null;default:'';comment:企微审核任务ID" json:"task_id"` BeforeData string `gorm:"column:before_data;type:json;comment:修改前数据JSON" json:"before_data"` AfterData string `gorm:"column:after_data;type:json;comment:修改后数据JSON" json:"after_data"` AdminId int64 `gorm:"column:admin_id;type:int;not null;default:0;comment:操作人ID" json:"admin_id"` AdminName string `gorm:"column:admin_name;type:varchar(64);not null;default:'';comment:操作人姓名" json:"admin_name"` CreatedAt utils.CustomTime `gorm:"column:created_at;type:datetime;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` }