From adbe0abb2a0f537fd8722bb6de4ff949a737f4e9 Mon Sep 17 00:00:00 2001 From: cjy Date: Tue, 3 Feb 2026 10:45:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/model/contract.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/internal/model/contract.go b/internal/model/contract.go index c5ad615..8d90bc8 100644 --- a/internal/model/contract.go +++ b/internal/model/contract.go @@ -53,20 +53,17 @@ type Contract struct { QualityAssuranceFee float64 `json:"qualityAssuranceFee" gorm:"column:quality_assurance_fee;type:decimal(18,4);comment:质量保证金额"` QualityAssuranceCurrencyType int `json:"qualityAssuranceCurrencyType" gorm:"column:quality_assurance_currency_type;type:int;comment:质量保证金货币类型"` - // 合同附件:JSON 数组,每项为 {"url":"","fileName":""} + // 附件:JSON 数组,每项为 {"url":"","fileName":""} ContractAttachmentURLs string `gorm:"column:contract_attachment_urls;type:json;comment:合同附件(含url+fileName)" json:"contractAttachmentURLs"` - // 其他附件:JSON 数组,每项为 {"url":"","fileName":""} - OtherAttachmentURLs string `gorm:"column:other_attachment_urls;type:json;comment:其他附件(含url+fileName)" json:"otherAttachmentURLs"` + OtherAttachmentURLs string `gorm:"column:other_attachment_urls;type:json;comment:其他附件(含url+fileName)" json:"otherAttachmentURLs"` Operator string `gorm:"column:operator;comment:操作人;index:idx_operator" json:"operator"` OperatorID string `gorm:"column:operator_id;type:varchar(50);NOT NULL;default:'';comment:操作人ID" json:"operatorID"` OperatorNum string `gorm:"column:operator_num;comment:操作人账号;index:idx_operator_num" json:"operatorNum"` OperatorTime time.Time `gorm:"column:operator_time;comment:操作时间;index:idx_operator_time;" json:"operatorTime"` - // 支付周期子表数组 - PaymentCycles []ContractPaymentCycle `gorm:"foreignKey:ContractUUID;references:ContractUUID" json:"paymentCycles"` - // 开发周期子表数组 - DevelopmentCycles []DevelopmentCycle `gorm:"foreignKey:ContractUUID;references:ContractUUID" json:"developmentCycles"` + PaymentCycles []ContractPaymentCycle `gorm:"foreignKey:ContractUUID;references:ContractUUID" json:"paymentCycles"` + DevelopmentCycles []DevelopmentCycle `gorm:"foreignKey:ContractUUID;references:ContractUUID" json:"developmentCycles"` CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"createdAt"` UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间" json:"updatedAt"`