项目重构: 整理目录结构, 更新前后端代码, 添加测试和数据库迁移

This commit is contained in:
AIGC Developer
2025-12-30 10:24:19 +08:00
parent 5344148a1c
commit 38630dbb66
117 changed files with 1987 additions and 1316 deletions

View File

@@ -506,6 +506,7 @@ export default {
unlimited: '无限',
limited: '有限',
pointsPerMonth: '积分/年',
pointsPerYear: '积分/年',
videoQuality: '视频质量',
support: '客服支持',
priorityQueue: '优先队列',
@@ -532,6 +533,23 @@ export default {
commercialUse: '支持商用',
noWatermark: '下载去水印',
earlyAccess: '新功能优先体验',
// 积分和条数
points: '积分',
items: '条',
pointsValidOneYear: '积分一年有效',
textToVideo30Points: '文生视频30积分/条',
imageToVideo30Points: '图生视频30积分/条',
storyboardImage30Points: '分镜图生成30积分/次',
storyboardVideo30Points: '分镜视频生成30积分/条',
maxTextToVideo: '最多文生视频 {count}条',
maxImageToVideo: '最多图生视频 {count}条',
maxStoryboardImage: '最多分镜图 {count}次',
maxStoryboardVideo: '最多分镜视频 {count}条',
textToVideoItems: '文生视频 {count}条',
imageToVideoItems: '或图生视频 {count}条',
storyboardImageTimes: '或分镜图 {count}次',
storyboardVideoItems: '或分镜视频 {count}条',
// 积分历史相关
pointsUsageHistory: '积分使用情况',
@@ -604,7 +622,11 @@ export default {
systemSettings: '系统设置',
onlineUsers: '当前在线用户',
systemUptime: '系统运行时间',
todayVisitors: '今日访客'
todayVisitors: '今日访客',
memberManagement: '会员管理',
orderManagement: '订单管理',
taskRecord: '生成任务记录',
errorStats: '错误统计'
},
admin: {
@@ -669,7 +691,12 @@ export default {
orderDetail: '订单详情',
basicInfo: '基本信息',
orderType: '订单类型',
paymentInfo: '支付信息'
paymentInfo: '支付信息',
productOrder: '商品订单',
serviceOrder: '服务订单',
subscriptionOrder: '订阅订单',
digitalProduct: '数字商品',
physicalProduct: '实体商品'
},
tasks: {
@@ -686,10 +713,27 @@ export default {
processing: '处理中',
failed: '失败',
cancelled: '已取消',
pending: '待处理',
textToVideo: '文生视频',
imageToVideo: '图生视频',
storyboardVideo: '分镜视频',
taskDetail: '任务详情'
taskDetail: '任务详情',
unknown: '未知',
pointsUnit: '积分',
basicInfo: '基本信息',
timeInfo: '时间信息',
progressInfo: '进度信息',
progress: '进度',
result: '结果',
resultLink: '结果链接',
viewResult: '查看结果',
errorInfo: '错误信息',
close: '关闭',
updateTime: '更新时间',
completeTime: '完成时间',
taskType: '任务类型',
resourcesConsumed: '消耗资源',
defaultPoints: '0积分'
},
members: {
@@ -707,22 +751,73 @@ export default {
usernamePlaceholder: '请输入用户名',
levelPlaceholder: '请选择会员等级',
pointsPlaceholder: '请输入资源点',
expiryPlaceholder: '请选择到期时间'
expiryPlaceholder: '请选择到期时间',
memberLevel: '会员等级',
freeMember: '免费会员',
standardMember: '标准会员',
professionalMember: '专业会员',
userStatus: '用户状态',
activeUsers: '活跃用户',
bannedUsers: '封禁用户',
allUsers: '全部用户',
role: '角色',
status: '状态',
setAdmin: '设为管理员',
revokeAdmin: '取消管理员',
ban: '封禁',
unban: '解封',
active: '活跃',
banned: '封禁',
superAdmin: '超级管理员',
admin: '管理员',
normalUser: '普通用户',
userRole: '用户角色',
selectRole: '请选择用户角色',
confirmRoleChange: '确定要将用户 {username} {action}吗?',
confirmBanAction: '确定要{action}用户 {username} 吗?',
confirmAction: '确认{action}',
actionSuccess: '{action}成功',
actionFailed: '{action}失败'
},
apiManagement: {
title: 'API管理',
apiKey: 'API密钥',
apiKeyPlaceholder: '请输入API密钥',
apiBaseUrl: 'API基础URL',
apiBaseUrlPlaceholder: '请输入API基础URL如 https://ai.comfly.chat',
apiBaseUrlHint: '当前使用',
tokenExpiration: 'Token过期时间',
tokenPlaceholder: '请输入小时数1-720',
hours: '小时',
days: '天',
rangeHint: '范围1-720小时1小时-30天',
atLeastOneRequired: '请至少输入一个配置项',
saveSuccess: '保存成功',
saveFailed: '保存失败'
},
errorStats: {
title: '错误类型统计',
userAvatar: '用户头像',
totalErrors: '总错误数',
todayErrors: '今日错误',
weekErrors: '本周错误',
errorTypeDistribution: '错误类型分布',
last7Days: '最近7天',
last30Days: '最近30天',
last90Days: '最近90天',
times: '次',
noErrorData: '暂无错误数据',
recentErrors: '最近错误',
refresh: '刷新',
time: '时间',
errorType: '错误类型',
user: '用户',
taskId: '任务ID',
errorMessage: '错误信息'
},
systemSettings: {
title: '系统设置',
membership: '会员收费标准',
@@ -779,8 +874,6 @@ export default {
confirmCleanup: '确认清理',
aiModel: 'AI模型设置',
promptOptimization: '提示词优化设置',
promptOptimizationApiUrl: 'API端点',
promptOptimizationApiUrlTip: '输入用于优化提示词的API端点地址如 https://api.openai.com',
promptOptimizationModel: '模型名称',
promptOptimizationModelTip: '输入用于优化提示词的模型名称,如 gpt-4o、gemini-pro 等',
storyboardSystemPrompt: '分镜图系统引导词',