From f4bf38893d54dd69fd79b5c384799951933e4c5a Mon Sep 17 00:00:00 2001 From: jhc <9316338+wangyitao309@user.noreply.gitee.com> Date: Tue, 25 Apr 2023 13:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20serializer:json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/financial_form.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/model/financial_form.go b/pkg/model/financial_form.go index ae0dacc..c3968f9 100644 --- a/pkg/model/financial_form.go +++ b/pkg/model/financial_form.go @@ -20,9 +20,9 @@ type FinancialFrom struct { Payee string `json:"payee" gorm:"column:payee;type:varchar(2048);comment:收款人全称"` BeneficiaryBank string `json:"beneficiaryBank" gorm:"column:beneficiary_bank;type:varchar(1024);comment:收款人开户行"` BankNo string `json:"bankNo" gorm:"column:bank_no;type:varchar(1024);comment:收款人账号"` - CostInfo []*CostInfo `json:"costInfo" gorm:"column:cost_info;type:json;comment:费用说明"` + CostInfo []*CostInfo `json:"costInfo" gorm:"column:cost_info;type:json;serializer:json;comment:费用说明"` PaymentMethod string `json:"paymentMethod" gorm:"column:payment_method;type:varchar(255);comment:付款方式"` - InvoiceInfo []*InvoiceInfo `json:"invoiceInfo" gorm:"column:invoice_info;type:json;comment:发票信息"` + InvoiceInfo []*InvoiceInfo `json:"invoiceInfo" gorm:"column:invoice_info;type:json;serializer:json;comment:发票信息"` } type CostInfo struct {