78 lines
3.2 KiB
YAML
78 lines
3.2 KiB
YAML
server:
|
||
port: 8080
|
||
|
||
spring:
|
||
application:
|
||
name: zeodao-task-reminder
|
||
|
||
# 多群任务提醒配置
|
||
task:
|
||
reminder:
|
||
# 全局默认配置
|
||
global:
|
||
timeout: 5000 # 超时时间(毫秒)
|
||
|
||
# 群组配置列表
|
||
groups:
|
||
# 禅道团队群
|
||
- id: "zentao-team"
|
||
name: "禅道开发团队"
|
||
webhook:
|
||
url: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=614b110b-8957-4be8-95b9-4eca84c15028"
|
||
task-system: "zentao" # 任务管理系统类型:zentao, smartsheet, jira, trello 等
|
||
# 禅道配置
|
||
zentao:
|
||
api-url: "https://zentao.iscmtech.com"
|
||
username: "admin" # 请替换为实际的禅道用户名
|
||
password: "Lianyu!@#~123456" # 请替换为实际的禅道密码
|
||
project-id: 38 # 项目ID(同时用于获取任务和BUG)
|
||
kanban-id: 39 # 看板ID(看板模式项目需要)
|
||
# 用户映射:禅道用户名 -> 企业微信手机号(显示使用真实姓名)
|
||
user-mapping:
|
||
"dengqichen": "18525522818"
|
||
"songwei": "15724574541"
|
||
# 也可以直接用用户名映射
|
||
# "zhangsan": "13600136000"
|
||
schedules:
|
||
morning:
|
||
time: "0 0 9 * * MON-FRI" # 工作日早上9点
|
||
message: "早上好!新的一天开始了,请大家及时登录禅道系统刷新今日的任务状态,确保任务进度准确反映当前工作情况。"
|
||
enabled: true # 启用早上提醒
|
||
evening:
|
||
time: "0 30 17 * * MON-FRI" # 工作日下午5:30
|
||
message: "下班前提醒:请大家登录禅道系统,及时更新今日任务的完成状态和进度,为明天的工作安排做好准备!"
|
||
enabled: true # 启用晚上提醒
|
||
overdue-reminder:
|
||
time: "0 0 10 * * MON-FRI" # 工作日上午10点
|
||
message: "禅道逾期任务提醒" # 这个消息会被系统动态生成,包含具体的任务和BUG统计信息
|
||
enabled: false # 启用逾期提醒
|
||
|
||
# 智能表格团队群
|
||
- id: "smartsheet-team"
|
||
name: "智能表格团队"
|
||
webhook:
|
||
url: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=614b110b-8957-4be8-95b9-4eca84c15028"
|
||
task-system: "smartsheet"
|
||
schedules:
|
||
morning:
|
||
time: "0 50 8 * * MON-FRI" # 工作日早上8点50分
|
||
message: "早上好!请大家及时更新智能表格中的任务状态,确保项目进度信息准确无误。"
|
||
enabled: true # 启用早上提醒
|
||
evening:
|
||
time: "0 20 17 * * MON-FRI" # 工作日下午5点20分
|
||
message: "下班前提醒:请在智能表格中更新今日工作完成情况,为明天做好准备!"
|
||
enabled: false # 禁用晚上提醒(示例:智能表格团队不需要晚上提醒)
|
||
|
||
# 日志配置
|
||
logging:
|
||
level:
|
||
com.zeodao.reminder: DEBUG
|
||
org.springframework.web: INFO
|
||
pattern:
|
||
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
||
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
||
file:
|
||
name: logs/task-reminder.log
|
||
max-size: 10MB
|
||
max-history: 30
|