From fe07df0b3e7f4f4dae2330218bd7a350bf4d7629 Mon Sep 17 00:00:00 2001 From: break Date: Fri, 11 Sep 2026 09:24:29 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=AE=A1=E6=89=B9):=20=E5=9C=BA=E6=99=AF=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=9E=9A=E4=B8=BE=E8=A1=A5=E5=85=85=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E4=BB=A3=E6=94=B6=E6=AC=BE=E6=A0=B8=E9=94=80=E5=AE=A1?= =?UTF-8?q?=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - wecom/scenes/{business_type} 与 scenes/{business_type}/fields 的 business_type 路径参数描述补齐第三个业务类型,避免管理员按文档无法配置核销审批场景 - 同步补机读 enum 标签,与既有可枚举参数约定一致 OpenSpec Change: add-employee-collection-bills --- internal/model/dto/wecom_scene_dto.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/dto/wecom_scene_dto.go b/internal/model/dto/wecom_scene_dto.go index 03a5fa8..eda2f2a 100644 --- a/internal/model/dto/wecom_scene_dto.go +++ b/internal/model/dto/wecom_scene_dto.go @@ -23,7 +23,7 @@ type InspectWeComTemplateParams struct { // WeComBusinessFieldListParams 查询企业微信审批场景可映射字段路径参数。 type WeComBusinessFieldListParams struct { - BusinessType string `path:"business_type" required:"true" description:"业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批)"` + BusinessType string `path:"business_type" required:"true" enum:"refund_approval,offline_recharge_approval,employee_collection_approval" description:"业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批, employee_collection_approval:员工代收款核销审批)"` } // WeComBusinessFieldResponse 企业微信审批场景可映射业务字段响应。 @@ -67,7 +67,7 @@ type SaveWeComApprovalSceneRequest struct { // SaveWeComApprovalSceneParams 保存企业微信审批场景路径与请求参数。 type SaveWeComApprovalSceneParams struct { - BusinessType string `path:"business_type" required:"true" description:"业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批);可先调用 GET /api/admin/wecom/scenes/{business_type}/fields 查询允许映射的业务字段"` + BusinessType string `path:"business_type" required:"true" enum:"refund_approval,offline_recharge_approval,employee_collection_approval" description:"业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批, employee_collection_approval:员工代收款核销审批);可先调用 GET /api/admin/wecom/scenes/{business_type}/fields 查询允许映射的业务字段"` SaveWeComApprovalSceneRequest }