feat: 迁移预警规则管理和历史分类查询

This commit is contained in:
Yvan
2026-11-03 20:19:26 +08:00
parent cd42a1d3f0
commit 7203c34409
31 changed files with 1264 additions and 15 deletions
+7
View File
@@ -41,6 +41,13 @@ type routeValue struct {
// Gin router files still bind handlers; tests keep those registrations aligned
// with this catalog while public, audit and API metadata live only here.
var routes = map[string]routeValue{
"GET /sw/alertRule/list": {group: "预警规则", description: "查询预警规则"},
"GET /sw/alertRule/ruleTypes": {group: "预警规则", description: "查询历史预警分类"},
"GET /sw/alertRule/:id": {group: "预警规则", description: "查询规则详情"},
"POST /sw/alertRule/add": {group: "预警规则", description: "新建预警规则", audit: true},
"PUT /sw/alertRule/edit": {group: "预警规则", description: "修改预警规则", audit: true},
"PUT /sw/alertRule/toggle/:id": {group: "预警规则", description: "启停预警规则", audit: true},
"DELETE /sw/alertRule/:id": {group: "预警规则", description: "删除预警规则", audit: true},
"GET /sw/business/:userId/promotes": {group: "商务管理", description: "查询商务旗下直属一级渠道"},
"POST /sw/auth/forgot-password/check": {group: "商务登录", description: "校验找回密码账号", public: true},
"POST /sw/auth/forgot-password/send-code": {group: "商务登录", description: "发送找回密码验证码", public: true},