refactor: 统一代码风格并迁移至 ESLint 新配置

style(backend): 格式化模型文件代码
style(frontend): 调整组件代码格式
chore: 删除旧 ESLint 配置并添加新配置
refactor(backend): 重构模型定义语法
style: 统一箭头函数和对象属性简写
This commit is contained in:
zhang1106
2026-03-27 19:12:16 +08:00
parent 6a8d4144ff
commit 63f0cb570e
166 changed files with 15483 additions and 11170 deletions
+15 -13
View File
@@ -515,14 +515,14 @@ const options = {
version: '1.0.0',
description: '数据中心设备管理平台后端服务 API 文档',
contact: {
name: 'API Support'
}
name: 'API Support',
},
},
servers: [
{
url: 'http://localhost:8000',
description: '开发环境服务器'
}
description: '开发环境服务器',
},
],
components: {
securitySchemes: {
@@ -530,13 +530,15 @@ const options = {
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT',
description: '输入 JWT token'
}
}
description: '输入 JWT token',
},
},
},
security: [{
bearerAuth: []
}],
security: [
{
bearerAuth: [],
},
],
tags: [
{ name: 'health', description: '健康检查' },
{ name: 'auth', description: '认证接口' },
@@ -560,10 +562,10 @@ const options = {
{ name: 'inventory', description: '盘点管理' },
{ name: 'statistics', description: '统计接口' },
{ name: 'operation-logs', description: '操作日志' },
{ name: 'backup', description: '备份管理' }
]
{ name: 'backup', description: '备份管理' },
],
},
apis: ['./routes/*.js', './swagger_docs.yaml']
apis: ['./routes/*.js', './swagger_docs.yaml'],
};
const specs = swaggerJsdoc(options);