From 451362588da797454dce698eacc131eeff7d743b Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 11 May 2026 14:57:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(expense):=20=E6=B7=BB=E5=8A=A0=E5=B7=AE?= =?UTF-8?q?=E6=97=85=E8=B4=B9=E8=AF=A6=E6=83=85=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在成本结构体中增加 TravelInfo 字段用于存储差旅费详情 - 更新数据库模型以支持差旅费详情信息存储 - 添加相应的 JSON 序列化标签支持 --- erp/expense/cost.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erp/expense/cost.go b/erp/expense/cost.go index 614c3cc..0a8479d 100644 --- a/erp/expense/cost.go +++ b/erp/expense/cost.go @@ -35,6 +35,7 @@ type CostItem struct { TravelAt *time.Time `json:"travelAt"` TravelLocation string `json:"travelLocation"` TravelReason string `json:"travelReason"` + TravelInfo string `json:"travelInfo"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` } @@ -61,6 +62,7 @@ type ArgsCostAdd struct { TravelAt *time.Time // 出差时间 TravelLocation string // 出差地点 TravelReason string // 出差事由 + TravelInfo string // 差旅费详情 } type ReplyCostAdd struct {