feat: ticket enhancemnet

This commit is contained in:
zhangsz
2025-07-02 17:22:35 +08:00
parent 24ed4e874a
commit 758276ecfc
11 changed files with 577 additions and 108 deletions

View File

@@ -1,25 +1,25 @@
ticket:
notifcation:
enabled: true
type: [smtp, sms]
smtp:
host: mail.smtp.com
enabled: true
host: mail.agrandtech.com
port: 25
user: smtpext@smtp.com
password: "1000smtp@omc!"
username: smtpext@agrandtech.com
# 注意:密码中如果包含特殊字符(如@、#、$等),
# 需要使用双引号括起来,避免解析错误
# 例如password: "1000smtp@omc!"
password: Smtp123@agt
tlsSkipVerify: true
from: restagent@localhost
to: support@localhost
subject: "Ticket Notification"
body: "A new ticket has been created with ID: {{.ID}} and Subject: {{.Subject}}"
sms:
enabled: false
provider: twilio
account: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
token: "your_auth_token"
from: "+1234567890"
to: "+0987654321"
timeout:
create: 60
update: 60
close: 60
to:
- simonzhangsz@outlook.com # 可以是多个收件人
- shuzone@126.com
timeout: # 超时设置
# 这些时间单位是分钟
# 注意:这些时间是相对于工单创建时间的
# 例如new: 60分钟inProgress: 60分钟
new: 1
inProgress: 60
noAnswer1: 240
noAnswer2: 480
nearlyTimeout: 20

View File

@@ -203,3 +203,8 @@ staticFile:
upload:
prefix: "/upload"
dir: "./upload"
# PSAP RESTCONF配置
psapConfig:
enabled: true
file: ./etc/psap.yaml