From 5cf9fa3936b78bea0afd5652ab30337209327953 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 30 Jul 2026 11:33:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E9=83=A8?= =?UTF-8?q?=E9=97=A8ID=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在Custom结构体中添加DepartmentIds字段 - 更新数据库模型定义 - 添加JSON序列化标签映射 - 支持多部门关联功能 --- erp/custom.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erp/custom.go b/erp/custom.go index f2a38c8..7f6a880 100644 --- a/erp/custom.go +++ b/erp/custom.go @@ -2,11 +2,12 @@ package erp import ( "context" + "time" + client2 "git.kumo.work/shama/service/client" custom2 "git.kumo.work/shama/service/erp/custom" "git.kumo.work/shama/service/lib/bean" "github.com/shopspring/decimal" - "time" ) type custom struct { @@ -112,6 +113,7 @@ type CustomAdd struct { MarkText string // 唛头文字 MarkImg string // 唛头图片 ImgFilePaths []string // 图片地址集合 + DepartmentIds []int64 // 部门id } // Add @TITLE 添加客户 @@ -154,6 +156,7 @@ type ReplyCustomInfo struct { MarkText string `json:"markText"` // 唛头文字 MarkImg string `json:"markImg"` // 唛头图片 ImgFilePaths []string `json:"imgFilePaths"` // 图片地址集合 + DepartmentIds []int64 `json:"departmentIds"` // 部门ID集合 Status int64 `json:"status"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"`