feat: 重构前端代码结构并添加Java后端支持
- 重构前端导入和组件结构,优化代码组织 - 添加Java后端基础框架和API实现 - 修复类型定义和接口兼容性问题 - 新增测试页面和工具函数 - 优化国际化支持和错误处理 - 更新依赖配置和构建脚本 新增Java后端模块: - 实现基础认证、订单、支付等服务 - 添加Swagger API文档支持 - 配置数据库连接和缓存 - 实现国际化消息处理 - 添加安全过滤器和限流控制
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
-- 创建告警表
|
||||
CREATE TABLE IF NOT EXISTS cf_alert (
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
tenant_id VARCHAR(255) NOT NULL,
|
||||
alert_type VARCHAR(50),
|
||||
severity VARCHAR(50),
|
||||
message TEXT,
|
||||
status VARCHAR(50),
|
||||
source VARCHAR(255),
|
||||
threshold VARCHAR(255),
|
||||
actual_value VARCHAR(255),
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
resolved_at DATETIME
|
||||
);
|
||||
|
||||
-- 为告警表添加索引
|
||||
CREATE INDEX IF NOT EXISTS idx_alert_tenant_id ON cf_alert(tenant_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_alert_status ON cf_alert(status);
|
||||
CREATE INDEX IF NOT EXISTS idx_alert_severity ON cf_alert(severity);
|
||||
CREATE INDEX IF NOT EXISTS idx_alert_alert_type ON cf_alert(alert_type);
|
||||
CREATE INDEX IF NOT EXISTS idx_alert_created_at ON cf_alert(created_at);
|
||||
Reference in New Issue
Block a user