补全一些接口
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m9s

This commit is contained in:
2026-07-27 17:17:43 +08:00
parent 072ec1db7e
commit d46ccbd319
8 changed files with 221 additions and 43 deletions

View File

@@ -11006,6 +11006,36 @@ components:
format: date-time
type: string
type: object
DtoWeComBusinessFieldListResponse:
properties:
business_type:
description: 业务类型
type: string
business_type_name:
description: 业务类型名称(中文)
type: string
items:
description: 当前业务类型允许写入 control_mapping.business_field 的字段
items:
$ref: '#/components/schemas/DtoWeComBusinessFieldResponse'
nullable: true
type: array
type: object
DtoWeComBusinessFieldResponse:
properties:
code:
description: control_mapping.business_field 应填写的稳定字段编码
type: string
description:
description: 字段取值说明
type: string
name:
description: 字段中文名称
type: string
value_type:
description: 字段值类型 (string:字符串, integer:整数, money:两位小数的元金额字符串, file_list:对象存储文件引用列表)
type: string
type: object
DtoWeComConnectionTestResponse:
properties:
success:
@@ -11015,7 +11045,7 @@ components:
DtoWeComControlMappingItem:
properties:
business_field:
description: 稳定业务字段编码
description: 系统业务字段编码;按 business_type 调用 GET /api/admin/wecom/scenes/{business_type}/fields 获取可选值
type: string
control_id:
description: 企微模板控件 ID
@@ -28890,12 +28920,12 @@ paths:
/api/admin/wecom/scenes/{business_type}:
put:
parameters:
- description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批)
- description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批);可先调用 GET /api/admin/wecom/scenes/{business_type}/fields 查询允许映射的业务字段
in: path
name: business_type
required: true
schema:
description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批)
description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批);可先调用 GET /api/admin/wecom/scenes/{business_type}/fields 查询允许映射的业务字段
type: string
requestBody:
content:
@@ -28958,6 +28988,72 @@ paths:
summary: 保存并校验企业微信审批场景模板映射
tags:
- 企业微信审批
/api/admin/wecom/scenes/{business_type}/fields:
get:
parameters:
- description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批)
in: path
name: business_type
required: true
schema:
description: 业务类型 (refund_approval:退款审批, offline_recharge_approval:员工线下代充值审批)
type: string
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 响应码
example: 0
type: integer
data:
$ref: '#/components/schemas/DtoWeComBusinessFieldListResponse'
msg:
description: 响应消息
example: success
type: string
timestamp:
description: 时间戳
format: date-time
type: string
required:
- code
- msg
- data
- timestamp
type: object
description: 成功
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 请求参数错误
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 未认证或认证已过期
"403":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 无权访问
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 服务器内部错误
security:
- BearerAuth: []
summary: 查询企业微信审批场景可映射字段
tags:
- 企业微信审批
/api/auth/login:
post:
requestBody: