v3.1 + 批次0: 智能回复重构基线 - ApprovalMatcher + 关键词降级 + 文档速修 + v4.0任务书面化

This commit is contained in:
Simon
2026-07-17 23:08:59 +08:00
parent 5a77a89ab1
commit 3ed86d5fb3
181 changed files with 19738 additions and 2655 deletions
+289
View File
@@ -0,0 +1,289 @@
# IT 资产推荐配置文件
# 用于右侧栏智能推荐的资产信息配置
# 修改后自动热重载,无需重启服务
# L1: 关键词匹配资产(当用户提到相关关键词时触发)
keyword_assets:
# VPN 相关
vpn:
title: "VPN 相关信息"
icon: "🔐"
description: "VPN 连接所需资源"
items:
- label: "客户端下载"
type: "download"
url: "https://download.servyou-it.com/vpn-client.exe"
description: "支持 Windows 10/11, macOS"
- label: "服务器地址"
type: "info"
value: "vpn.servyou-it.com"
copyable: true
- label: "申请审批"
type: "approval"
url: "/itportal/approval/apply?type=vpn"
approval_type: "vpn_access"
- label: "使用手册"
type: "doc"
url: "https://wiki.servyou-it.com/vpn-guide"
description: "VPN 使用指南 PDF"
# 打印机相关
打印机:
title: "打印机相关"
icon: "🖨️"
description: "打印机连接与驱动"
items:
- label: "驱动下载"
type: "download"
url: "https://download.servyou-it.com/printer-drivers.exe"
- label: "添加网络打印机"
type: "guide"
url: "/itportal/guide/add-printer"
- label: "故障排除"
type: "guide"
url: "/itportal/guide/printer-troubleshoot"
# 打印机驱动 - 打印机别名
打印机驱动:
alias_of: "打印机"
# 打印机驱动下载:
驱动下载:
alias_of: "打印机"
# 邮箱/Outlook 相关
outlook:
title: "邮箱相关"
icon: "📧"
description: "企业邮箱配置与使用"
items:
- label: "Outlook 配置指南"
type: "guide"
url: "/itportal/guide/outlook-setup"
- label: "手机邮箱设置"
type: "guide"
url: "/itportal/guide/mobile-mail"
- label: "邮件归档查询"
type: "link"
url: "https://mail.servyou-it.com/archive"
- label: "邮箱别名申请"
type: "approval"
url: "/itportal/approval/apply?type=email-alias"
approval_type: "email_alias"
邮箱:
alias_of: "outlook"
# 软件安装相关
软件安装:
title: "软件安装申请"
icon: "📦"
description: "常用软件安装"
items:
- label: "申请安装软件"
type: "approval"
url: "/itportal/approval/apply?type=software"
approval_type: "software_install"
- label: "常用软件列表"
type: "doc"
url: "/itportal/guide/common-software"
- label: "正版软件申请"
type: "approval"
url: "/itportal/approval/apply?type=licensed-software"
approval_type: "licensed_software"
安装软件:
alias_of: "软件安装"
# 账号权限相关 - 添加"密码"关键词用于强关联匹配
账号:
title: "账号权限相关"
icon: "🔑"
description: "账号申请与权限管理"
items:
- label: "账号申请"
type: "approval"
url: "/itportal/approval/apply?type=account"
approval_type: "account_request"
- label: "权限申请"
type: "approval"
url: "/itportal/approval/apply?type=permission"
approval_type: "permission_request"
- label: "密码重置"
type: "guide"
url: "/itportal/guide/password-reset"
# 密码重置 - 单独的高优先级关键词,用于邮件/登录等问题
密码:
title: "密码问题"
icon: "🔐"
description: "密码相关问题"
items:
- label: "密码重置"
type: "guide"
url: "/itportal/guide/password-reset"
- label: "忘记密码"
type: "guide"
url: "/itportal/guide/password-reset"
# 登录问题 - 关联到密码重置
登录:
alias_of: "密码"
# 权限:
# alias_of: "账号"
# 网络相关
网络:
title: "网络相关"
icon: "🌐"
description: "网络连接与访问"
items:
- label: "WiFi 申请"
type: "approval"
url: "/itportal/approval/apply?type=wifi"
approval_type: "wifi_access"
- label: "访客网络"
type: "guide"
url: "/itportal/guide/guest-network"
- label: "网络故障排查"
type: "guide"
url: "/itportal/guide/network-troubleshoot"
wifi:
alias_of: "网络"
# 门禁相关
门禁:
title: "门禁相关"
icon: "🚪"
description: "门禁权限管理"
items:
- label: "门禁权限申请"
type: "approval"
url: "/itportal/approval/apply?type=door-access"
approval_type: "door_access"
- label: "开门记录查询"
type: "link"
url: "https://door.servyou-it.com/log"
# 会议室相关
会议室:
title: "会议室预约"
icon: "🏢"
description: "会议室预订与管理"
items:
- label: "预订会议室"
type: "link"
url: "/itterminal/"
- label: "会议设备使用"
type: "guide"
url: "/itportal/guide/meeting-room-equipment"
# 电脑/硬件相关
电脑:
title: "IT 设备相关"
icon: "💻"
description: "电脑与硬件支持"
items:
- label: "设备故障报修"
type: "approval"
url: "/itportal/approval/apply?type=device-repair"
approval_type: "device_repair"
- label: "新设备申请"
type: "approval"
url: "/itportal/approval/apply?type=device-new"
approval_type: "device_new"
- label: "设备归还"
type: "guide"
url: "/itportal/guide/device-return"
笔记本:
alias_of: "电脑"
硬件:
alias_of: "电脑"
# L2: 画像触发规则配置(由代码实现动态检测)
# 此处仅作文档参考,实际规则在 asset_recommend_service.py 中实现
profile_triggers:
- name: "火绒终端版本过旧"
condition: "huorong_version < '5.0.73'"
priority: 90
- name: "火绒病毒库过期"
condition: "virusdb_days_since_update > 7"
priority: 80
- name: "终端防护离线"
condition: "huorong_offline_days > 3"
priority: 100
- name: "系统补丁缺失"
condition: "missing_patches > 10"
priority: 90
# L3: 角色通用推荐
role_assets:
# 新员工
new_employee:
title: "新员工 IT 入门"
icon: "🎓"
description: "入职第一天需要了解的信息"
items:
- label: "IT 服务台使用指南"
type: "doc"
url: "/itportal/guide/new-employee"
description: "快速上手 IT 服务台"
- label: "常用软件一览"
type: "doc"
url: "/itportal/guide/common-software"
description: "日常办公必备软件"
- label: "IT 支持联系方式"
type: "contact"
value: "IT 支持组: 8888"
description: "内线: 8888"
# 开发者
developer:
title: "开发者资源"
icon: "💻"
description: "开发相关资源"
items:
- label: "代码仓库"
type: "link"
url: "https://git.servyou-it.com"
- label: "API 文档"
type: "doc"
url: "https://api-docs.servyou-it.com"
- label: "测试环境申请"
type: "approval"
url: "/itportal/approval/apply?type=test-env"
approval_type: "test_env"
- label: "数据库访问"
type: "approval"
url: "/itportal/approval/apply?type=db-access"
approval_type: "db_access"
# 财务人员
finance:
title: "财务常用资源"
icon: "💰"
description: "财务相关系统与工具"
items:
- label: "财务系统登录"
type: "link"
url: "https://finance.servyou-it.com"
- label: "U盾驱动下载"
type: "download"
url: "https://download.servyou-it.com/ukey-drivers.exe"
# 管理人员
manager:
title: "管理常用资源"
icon: "👔"
description: "管理相关系统与工具"
items:
- label: "审批管理"
type: "link"
url: "/itportal/admin/approvals"
- label: "团队设备管理"
type: "link"
url: "/itportal/admin/team-devices"