384 lines
45 KiB
TypeScript
384 lines
45 KiB
TypeScript
// ===== AIFlow Mock Data Layer =====
|
||
// 分离的Mock数据层,便于后续接入真实后端时替换
|
||
|
||
import type {
|
||
User, Conversation, Message, KnowledgeBase,
|
||
KnowledgeDocument, MarketApp, AppReview, TokenUsageLog,
|
||
TokenBalance, Order, MembershipPlan, Coupon, UserCoupon,
|
||
Notification, ModelProvider, AIModel, SiteSettings,
|
||
PaymentConfig, OperationLog, AuditLog,
|
||
Asset, AssetCategoryDef, NovelChapter, RegisterSettings, AdBanner,
|
||
EvolutionSkill, EvolutionEvent, SkillUsageStat, EvolutionProfile
|
||
} from '@/types';
|
||
|
||
// ==================== 用户数据 ====================
|
||
export const mockUsers: User[] = [
|
||
{
|
||
id: 'u1', username: 'demo_user', email: 'demo@aiflow.com',
|
||
phone: '138****8888', avatar: '',
|
||
role: 'user', status: 'active', realNameStatus: 'verified', realName: '张三',
|
||
createdAt: '2026-01-15T08:00:00Z',
|
||
membership: {
|
||
planId: 'mp2', planName: '专业版', level: 2,
|
||
expireAt: '2026-07-15T08:00:00Z', autoRenew: true,
|
||
},
|
||
},
|
||
{
|
||
id: 'u2', username: 'pro_user', email: 'pro@aiflow.com',
|
||
phone: '139****9999', avatar: '',
|
||
role: 'user', status: 'active', realNameStatus: 'pending',
|
||
createdAt: '2026-02-20T10:30:00Z',
|
||
membership: {
|
||
planId: 'mp3', planName: '企业版', level: 3,
|
||
expireAt: '2026-08-20T10:30:00Z', autoRenew: false,
|
||
},
|
||
},
|
||
{
|
||
id: 'u3', username: 'test_user', email: 'test@aiflow.com',
|
||
phone: '136****7777', avatar: '',
|
||
role: 'user', status: 'active', realNameStatus: 'unverified',
|
||
createdAt: '2026-04-01T14:00:00Z',
|
||
membership: {
|
||
planId: 'mp1', planName: '免费版', level: 0,
|
||
expireAt: '2027-04-01T14:00:00Z', autoRenew: false,
|
||
},
|
||
},
|
||
{
|
||
id: 'u4', username: 'biz_user', email: 'biz@aiflow.com',
|
||
phone: '135****6666', avatar: '',
|
||
role: 'user', status: 'banned', realNameStatus: 'verified', realName: '李四',
|
||
createdAt: '2026-03-10T09:00:00Z',
|
||
membership: {
|
||
planId: 'mp2', planName: '专业版', level: 2,
|
||
expireAt: '2026-05-10T09:00:00Z', autoRenew: false,
|
||
},
|
||
},
|
||
{
|
||
id: 'admin1', username: 'admin', email: 'admin@aiflow.com',
|
||
phone: '', avatar: '',
|
||
role: 'admin', status: 'active', realNameStatus: 'verified', realName: '管理员',
|
||
createdAt: '2025-12-01T00:00:00Z',
|
||
},
|
||
];
|
||
|
||
// ==================== 注册设置 ====================
|
||
export const mockRegisterSettings: RegisterSettings = {
|
||
phoneRequired: true,
|
||
phoneSmsRequired: true,
|
||
emailRequired: true,
|
||
emailVerifyRequired: true,
|
||
realNameRequired: false,
|
||
aliyunAccessKey: '',
|
||
aliyunSecretKey: '',
|
||
aliyunEndpoint: 'https://cloudauth.aliyuncs.com',
|
||
};
|
||
|
||
// ==================== 对话数据 ====================
|
||
export const mockConversations: Conversation[] = [
|
||
{ id: 'c1', userId: 'u1', title: '帮我写一份产品分析报告', modelId: 'm1', status: 'active', createdAt: '2026-05-26T08:00:00Z', updatedAt: '2026-05-26T09:30:00Z', lastMessage: '这是为你准备的完整产品分析报告...' },
|
||
{ id: 'c2', userId: 'u1', title: 'Python代码Review', modelId: 'm2', status: 'active', createdAt: '2026-05-25T14:00:00Z', updatedAt: '2026-05-25T15:20:00Z', lastMessage: '代码审查完成,主要关注以下几点...' },
|
||
{ id: 'c3', userId: 'u1', title: '翻译英文合同条款', modelId: 'm1', status: 'archived', createdAt: '2026-05-20T10:00:00Z', updatedAt: '2026-05-20T11:00:00Z', lastMessage: '合同条款翻译已完成。' },
|
||
{ id: 'c4', userId: 'u1', title: '市场调研数据分析', modelId: 'm2', status: 'active', createdAt: '2026-05-24T16:00:00Z', updatedAt: '2026-05-24T17:45:00Z', lastMessage: '根据数据分析,以下是主要发现...' },
|
||
{ id: 'c5', userId: 'u1', title: 'SQL查询优化建议', modelId: 'm1', status: 'active', createdAt: '2026-05-23T09:00:00Z', updatedAt: '2026-05-23T10:15:00Z', lastMessage: 'Optimization complete.' },
|
||
{ id: 'c6', userId: 'u1', title: '营销文案撰写', modelId: 'm2', status: 'archived', createdAt: '2026-05-18T11:00:00Z', updatedAt: '2026-05-18T11:45:00Z', lastMessage: '以下是3版营销文案供你选择。' },
|
||
{ id: 'c7', userId: 'u1', title: 'API文档生成', modelId: 'm1', status: 'active', createdAt: '2026-05-22T13:00:00Z', updatedAt: '2026-05-22T14:30:00Z', lastMessage: 'API文档已经按照OpenAPI规范生成。' },
|
||
];
|
||
|
||
export const mockMessages: Record<string, Message[]> = {
|
||
c1: [
|
||
{ id: 'm1_1', conversationId: 'c1', role: 'user', content: '我需要你帮我写一份关于智能办公SaaS产品的市场分析报告,重点覆盖竞品分析、市场规模和用户画像三个维度。', tokenUsed: 45, createdAt: '2026-05-26T08:00:00Z' },
|
||
{ id: 'm1_2', conversationId: 'c1', role: 'assistant', content: '好的,我来为你撰写这份智能办公SaaS产品市场分析报告...\n\n## 一、市场规模\n\n全球智能办公 SaaS 市场在 2026 年预计达到 780 亿美元,年复合增长率(CAGR)约 18.5%。中国市场作为亚太地区增长最快的市场...\n\n## 二、竞品分析\n\n1. **钉钉/飞书**:依托阿里/字节生态,主打协作办公 + AI 助手\n2. **Notion AI**:知识库 + AI 写作的典范\n3. **QwenPaw**:AI 聊天 + 频道模式,面向个人用户\n\n## 三、用户画像\n\n- 年龄:25-40 岁职场人群占 72%\n- 需求:效率提升(65%)、内容创作(45%)、数据分析(38%)\n- 付费意愿:月均 30-100 元区间占 58%', tokenUsed: 580, createdAt: '2026-05-26T08:00:30Z' },
|
||
{ id: 'm1_3', conversationId: 'c1', role: 'user', content: '很好,能再详细分析一下QwenPaw的商业模式和我们可以借鉴的地方吗?', tokenUsed: 28, createdAt: '2026-05-26T09:00:00Z' },
|
||
{ id: 'm1_4', conversationId: 'c1', role: 'assistant', content: 'QwenPaw 的商业模式有几个值得借鉴的关键点:\n\n**1. 免费增值模式**\n基础功能免费,高级功能(如更多 Token、优先响应)通过订阅解锁。\n\n**2. 频道生态**\n用户可创建主题频道,聚合特定领域的知识和 Agent。这形成了网络效应。\n\n**3. 知识库集成**\n支持上传文档构建个人知识库,增强了用户粘性。\n\n我们可以在此基础上增加:应用市场(用户可交易 Skills/Agent)和 Token 驾驶舱(消费透明度),形成更完整的商业闭环。', tokenUsed: 320, createdAt: '2026-05-26T09:30:00Z' },
|
||
],
|
||
c2: [
|
||
{ id: 'm2_1', conversationId: 'c2', role: 'user', content: '帮我review一下这段Python代码:\n```python\ndef process_data(data):\n result = []\n for item in data:\n if item["status"] == "active":\n result.append(item)\n return result\n```', tokenUsed: 50, createdAt: '2026-05-25T14:00:00Z' },
|
||
{ id: 'm2_2', conversationId: 'c2', role: 'assistant', content: '代码审查建议:\n\n1. **类型注解**:建议添加类型注解提高可读性\n2. **列表推导式**:可用推导式简化\n3. **异常处理**:缺少对缺失key的防御\n\n优化版本:\n```python\nfrom typing import Any\n\ndef process_data(data: list[dict[str, Any]]) -> list[dict[str, Any]]:\n return [item for item in data if item.get("status") == "active"]\n```', tokenUsed: 180, createdAt: '2026-05-25T15:20:00Z' },
|
||
],
|
||
};
|
||
|
||
|
||
|
||
// ==================== 知识库数据 ====================
|
||
export const mockKnowledgeBases: KnowledgeBase[] = [
|
||
{ id: 'kb1', userId: 'u1', name: '电商运营手册', description: '包含电商运营SOP、平台规则等', documentCount: 23, directoryPath: '/电商运营', createdAt: '2026-03-15T08:00:00Z', updatedAt: '2026-05-20T10:00:00Z' },
|
||
{ id: 'kb2', userId: 'u1', name: '技术规范文档', description: '代码规范、API文档、架构设计等', documentCount: 15, directoryPath: '/技术文档', createdAt: '2026-03-20T14:00:00Z', updatedAt: '2026-05-18T16:00:00Z' },
|
||
{ id: 'kb3', userId: 'u1', name: '产品需求模板', description: 'PRD模板、用户故事、验收标准', documentCount: 8, directoryPath: '/产品文档', createdAt: '2026-04-01T09:00:00Z', updatedAt: '2026-05-15T11:00:00Z' },
|
||
];
|
||
|
||
export const mockDocuments: KnowledgeDocument[] = [
|
||
{ id: 'd1', knowledgeBaseId: 'kb1', filename: '天猫运营SOP_v3.pdf', fileType: 'pdf', fileSize: 2450000, status: 'completed', chunkCount: 48, createdAt: '2026-03-15T08:30:00Z' },
|
||
{ id: 'd2', knowledgeBaseId: 'kb1', filename: '拼多多运营指南.docx', fileType: 'docx', fileSize: 1800000, status: 'completed', chunkCount: 35, createdAt: '2026-03-16T10:00:00Z' },
|
||
{ id: 'd3', knowledgeBaseId: 'kb1', filename: '电商数据分析模板.xlsx', fileType: 'xlsx', fileSize: 890000, status: 'completed', chunkCount: 18, createdAt: '2026-04-01T14:00:00Z' },
|
||
{ id: 'd4', knowledgeBaseId: 'kb2', filename: 'API设计规范.md', fileType: 'md', fileSize: 45000, status: 'completed', chunkCount: 5, createdAt: '2026-03-20T15:00:00Z' },
|
||
{ id: 'd5', knowledgeBaseId: 'kb2', filename: '代码Review规范.pdf', fileType: 'pdf', fileSize: 320000, status: 'processing', chunkCount: 0, createdAt: '2026-05-18T16:30:00Z' },
|
||
{ id: 'd6', knowledgeBaseId: 'kb3', filename: 'PRD模板_v2.docx', fileType: 'docx', fileSize: 560000, status: 'completed', chunkCount: 12, createdAt: '2026-04-01T09:30:00Z' },
|
||
];
|
||
|
||
// ==================== 应用市场数据 ====================
|
||
export const mockApps: MarketApp[] = [
|
||
{ id: 'a1', name: '智能客服Agent', type: 'agent', source: 'official', publisherId: 'admin1', publisherName: 'AIFlow官方', description: '7x24小时智能客服,支持多轮对话、意图识别、工单自动创建。可接入主流电商平台和自建站点。', icon: '🤖', price: 29.9, isMemberFree: true, joinPromotion: true, status: 'published', ratingAvg: 4.7, reviewCount: 128, installCount: 3560, createdAt: '2026-01-10T08:00:00Z' },
|
||
{ id: 'a2', name: '数据分析工具箱', type: 'skill', source: 'official', publisherId: 'admin1', publisherName: 'AIFlow官方', description: '一键完成数据清洗、可视化、趋势预测。支持CSV/Excel/JSON多种格式导入。', icon: '📊', price: 19.9, isMemberFree: true, joinPromotion: true, status: 'published', ratingAvg: 4.5, reviewCount: 89, installCount: 2120, createdAt: '2026-01-15T10:00:00Z' },
|
||
{ id: 'a3', name: 'MCP数据库连接器', type: 'mcp', source: 'official', publisherId: 'admin1', publisherName: 'AIFlow官方', description: '通过MCP协议连接MySQL/PostgreSQL/MongoDB,让AI直接查询和分析数据库。', icon: '🔌', price: 39.9, isMemberFree: false, joinPromotion: true, status: 'published', ratingAvg: 4.3, reviewCount: 56, installCount: 890, createdAt: '2026-02-01T09:00:00Z' },
|
||
{ id: 'a4', name: '微信公众号助手', type: 'skill', source: 'user', publisherId: 'u2', publisherName: 'pro_user', description: '自动生成公众号文章排版、封面图、摘要。支持多种写作风格。', icon: '✍️', price: 9.9, isMemberFree: true, joinPromotion: false, status: 'published', ratingAvg: 4.8, reviewCount: 203, installCount: 4680, createdAt: '2026-02-20T14:00:00Z' },
|
||
{ id: 'a5', name: '法律文书Agent', type: 'agent', source: 'user', publisherId: 'u2', publisherName: 'pro_user', description: '智能生成各类法律文书模板,自动校验合规性。覆盖合同、声明、律师函等。', icon: '⚖️', price: 49.9, isMemberFree: false, joinPromotion: true, status: 'published', ratingAvg: 4.6, reviewCount: 67, installCount: 1230, createdAt: '2026-03-01T11:00:00Z' },
|
||
{ id: 'a6', name: 'SEO优化套件', type: 'skill', source: 'official', publisherId: 'admin1', publisherName: 'AIFlow官方', description: '关键词分析、内容SEO评分、TDK优化建议、竞争对手SEO分析。', icon: '🔍', price: 15.9, isMemberFree: true, joinPromotion: true, status: 'published', ratingAvg: 4.4, reviewCount: 78, installCount: 1950, createdAt: '2026-03-10T08:00:00Z' },
|
||
{ id: 'a7', name: '电商选品助手', type: 'agent', source: 'user', publisherId: 'u2', publisherName: 'pro_user', description: '基于AI大数据分析,挖掘蓝海品类和潜力爆款。支持抖音/淘宝/拼多多。', icon: '🛒', price: 25.9, isMemberFree: false, joinPromotion: false, status: 'pending', ratingAvg: 0, reviewCount: 0, installCount: 0, createdAt: '2026-05-20T16:00:00Z' },
|
||
{ id: 'a8', name: 'PPT自动生成器', type: 'skill', source: 'official', publisherId: 'admin1', publisherName: 'AIFlow官方', description: '输入大纲或文档,一键生成专业PPT。支持多种模板风格。', icon: '📽️', price: 12.9, isMemberFree: true, joinPromotion: true, status: 'published', ratingAvg: 4.9, reviewCount: 312, installCount: 5890, createdAt: '2026-01-20T09:00:00Z' },
|
||
];
|
||
|
||
export const mockReviews: Record<string, AppReview[]> = {
|
||
a1: [
|
||
{ id: 'r1', userId: 'u1', userName: 'demo_user', appId: 'a1', rating: 5, content: '非常好用,接入客服系统后效率提升明显。', createdAt: '2026-03-05T10:00:00Z' },
|
||
{ id: 'r2', userId: 'u2', userName: 'pro_user', appId: 'a1', rating: 4, content: '功能很全面,希望能增加更多自定义话术模板。', createdAt: '2026-03-10T14:00:00Z' },
|
||
],
|
||
};
|
||
|
||
// ==================== Token数据 ====================
|
||
export const mockTokenBalance: TokenBalance = {
|
||
userId: 'u1',
|
||
totalConsumed: 2856000,
|
||
balance: 144000,
|
||
};
|
||
|
||
export const mockTokenLogs: TokenUsageLog[] = [
|
||
{ id: 't1', userId: 'u1', modelId: 'm1', modelName: 'DeepSeek-V3', appId: 'a1', appName: '智能客服Agent', promptTokens: 12500, completionTokens: 3800, totalTokens: 16300, cost: 0.33, createdAt: '2026-05-26T08:00:00Z' },
|
||
{ id: 't2', userId: 'u1', modelId: 'm1', modelName: 'DeepSeek-V3', promptTokens: 8500, completionTokens: 2100, totalTokens: 10600, cost: 0.21, createdAt: '2026-05-26T07:30:00Z' },
|
||
{ id: 't3', userId: 'u1', modelId: 'm2', modelName: 'GPT-4o', appId: 'a4', appName: '微信公众号助手', promptTokens: 3200, completionTokens: 5600, totalTokens: 8800, cost: 0.44, createdAt: '2026-05-26T07:00:00Z' },
|
||
{ id: 't4', userId: 'u1', modelId: 'm1', modelName: 'DeepSeek-V3', promptTokens: 15000, completionTokens: 4500, totalTokens: 19500, cost: 0.39, createdAt: '2026-05-25T16:00:00Z' },
|
||
{ id: 't5', userId: 'u1', modelId: 'm2', modelName: 'GPT-4o', promptTokens: 2200, completionTokens: 1800, totalTokens: 4000, cost: 0.20, createdAt: '2026-05-25T15:00:00Z' },
|
||
{ id: 't6', userId: 'u1', modelId: 'm1', modelName: 'DeepSeek-V3', appId: 'a2', appName: '数据分析工具箱', promptTokens: 6800, completionTokens: 9200, totalTokens: 16000, cost: 0.32, createdAt: '2026-05-25T14:00:00Z' },
|
||
{ id: 't7', userId: 'u1', modelId: 'm2', modelName: 'GPT-4o', promptTokens: 4500, completionTokens: 2800, totalTokens: 7300, cost: 0.37, createdAt: '2026-05-25T10:00:00Z' },
|
||
{ id: 't8', userId: 'u1', modelId: 'm1', modelName: 'DeepSeek-V3', promptTokens: 9800, completionTokens: 3200, totalTokens: 13000, cost: 0.26, createdAt: '2026-05-25T09:00:00Z' },
|
||
];
|
||
|
||
// ==================== 订单数据 ====================
|
||
export const mockOrders: Order[] = [
|
||
{ id: 'o1', userId: 'u1', orderType: 'membership', itemName: '专业版 - 季度订阅', amount: 299, paymentMethod: 'wechat', status: 'paid', createdAt: '2026-04-15T08:00:00Z' },
|
||
{ id: 'o2', userId: 'u1', orderType: 'app', itemName: 'MCP数据库连接器', amount: 39.9, paymentMethod: 'alipay', status: 'paid', createdAt: '2026-05-01T10:00:00Z' },
|
||
{ id: 'o3', userId: 'u1', orderType: 'service', itemName: '定制Agent开发服务', amount: 199, paymentMethod: 'wechat', status: 'paid', createdAt: '2026-05-10T14:00:00Z' },
|
||
{ id: 'o4', userId: 'u1', orderType: 'app', itemName: '法律文书Agent', amount: 49.9, paymentMethod: 'wechat', status: 'pending', createdAt: '2026-05-26T09:00:00Z' },
|
||
];
|
||
|
||
// ==================== 会员数据 ====================
|
||
export const mockMembershipPlans: MembershipPlan[] = [
|
||
{ id: 'mp1', name: '免费版', level: 0, durationType: 'month', price: 0, dailyFreeTokens: 5000, features: ['基础AI对话', '3个文档知识库', '基础模型访问', '社区支持'], freeAppIds: [], freeModelIds: [] },
|
||
{ id: 'mp2', name: '专业版', level: 2, durationType: 'month', price: 99, dailyFreeTokens: 50000, features: ['无限AI对话', '无限知识库', '全部模型访问', '优先响应', '应用市场8折', 'API密钥访问'], freeAppIds: ['a3', 'a5'], freeModelIds: ['m2'] },
|
||
{ id: 'mp3', name: '企业版', level: 3, durationType: 'month', price: 299, dailyFreeTokens: 200000, features: ['专业版全部权益', '多成员协作', '专属模型', 'API调用额度', '7x24技术支持', '定制开发服务'], freeAppIds: ['a3', 'a5', 'a7'], freeModelIds: ['m2', 'm4'] },
|
||
];
|
||
|
||
// ==================== 优惠券数据 ====================
|
||
export const mockCoupons: Coupon[] = [
|
||
{ id: 'cp1', code: 'NEW2026', type: 'fixed', value: 30, minAmount: 99, validFrom: '2026-01-01', validTo: '2026-12-31', status: 'active' },
|
||
{ id: 'cp2', code: 'SUMMER50', type: 'percent', value: 50, minAmount: 100, validFrom: '2026-06-01', validTo: '2026-08-31', status: 'active' },
|
||
];
|
||
|
||
export const mockUserCoupons: UserCoupon[] = [
|
||
{ id: 'uc1', userId: 'u1', couponId: 'cp1', coupon: mockCoupons[0], status: 'unused' },
|
||
{ id: 'uc2', userId: 'u1', couponId: 'cp2', coupon: mockCoupons[1], status: 'unused' },
|
||
];
|
||
|
||
// ==================== 通知数据 ====================
|
||
export const mockNotifications: Notification[] = [
|
||
{ id: 'n1', userId: 'u1', type: 'announcement', title: '平台全新升级公告', content: 'AIFlow v2.0 已上线,新增应用市场、Token驾驶舱等重磅功能。', isRead: false, createdAt: '2026-05-25T10:00:00Z' },
|
||
{ id: 'n2', userId: 'u1', type: 'renewal', title: '会员即将到期提醒', content: '您的专业版会员将在30天后到期,请及时续费以保持权益。', isRead: false, createdAt: '2026-05-24T09:00:00Z' },
|
||
{ id: 'n3', userId: 'u1', type: 'order', title: '订单支付成功', content: '您已成功购买"定制Agent开发服务",金额199元。', isRead: true, createdAt: '2026-05-10T14:05:00Z' },
|
||
{ id: 'n4', userId: 'u1', type: 'update', title: '应用更新通知', content: '您已购的"微信公众号助手"已更新至v3.2版本,新增多平台分发功能。', isRead: true, createdAt: '2026-05-20T16:00:00Z' },
|
||
{ id: 'n5', userId: 'u1', type: 'reminder', title: 'Token余额不足提醒', content: '当前Token余额已不足10万,建议尽快充值以确保服务连续性。', isRead: false, createdAt: '2026-05-26T07:00:00Z' },
|
||
];
|
||
|
||
// ==================== 后台:模型数据 ====================
|
||
export const mockModelProviders: ModelProvider[] = [
|
||
{ id: 'mp1', name: 'DeepSeek', protocol: 'openai_compatible', apiKey: '', apiBaseUrl: 'https://api.deepseek.com', createdAt: '2025-12-01T08:00:00Z' },
|
||
{ id: 'mp2', name: 'OpenAI', protocol: 'openai_compatible', apiKey: '', apiBaseUrl: 'https://api.openai.com', createdAt: '2025-12-01T08:00:00Z' },
|
||
{ id: 'mp3', name: '通义千问', protocol: 'openai_compatible', apiKey: '', apiBaseUrl: 'https://dashscope.aliyuncs.com', createdAt: '2026-01-10T10:00:00Z' },
|
||
];
|
||
|
||
export const mockModels: AIModel[] = [
|
||
{ id: 'm1', providerId: 'mp1', providerName: 'DeepSeek', name: 'DeepSeek-V3', apiKey: 'sk-****abcd', endpoint: '/chat/completions', capabilities: ['text', 'thinking'], timeout: 60, status: 'free', pricePerMillionTokens: 20, isEnabled: true, totalCalls: 125000, totalTokens: 850000000 },
|
||
{ id: 'm2', providerId: 'mp2', providerName: 'OpenAI', name: 'GPT-4o', apiKey: 'sk-****efgh', endpoint: '/chat/completions', capabilities: ['text', 'vision', 'tool'], timeout: 45, status: 'paid', pricePerMillionTokens: 50, isEnabled: true, totalCalls: 89000, totalTokens: 420000000 },
|
||
{ id: 'm3', providerId: 'mp3', providerName: '通义千问', name: 'Qwen-Max', apiKey: 'sk-****ijkl', endpoint: '/services/aigc/text-generation/generation', capabilities: ['text', 'tool'], timeout: 60, status: 'free', pricePerMillionTokens: 15, isEnabled: true, totalCalls: 67000, totalTokens: 310000000 },
|
||
{ id: 'm4', providerId: 'mp1', providerName: 'DeepSeek', name: 'DeepSeek-R1', apiKey: 'sk-****mnop', endpoint: '/chat/completions', capabilities: ['text', 'thinking'], timeout: 90, status: 'paid', pricePerMillionTokens: 35, isEnabled: true, totalCalls: 43000, totalTokens: 520000000 },
|
||
{ id: 'm5', providerId: 'mp3', providerName: '通义千问', name: 'Qwen-Plus', apiKey: 'sk-****qrst', endpoint: '/services/aigc/text-generation/generation', capabilities: ['text'], timeout: 30, status: 'free', pricePerMillionTokens: 8, isEnabled: false, totalCalls: 0, totalTokens: 0 },
|
||
];
|
||
|
||
// ==================== 后台:站点设置 ====================
|
||
export const mockSiteSettings: SiteSettings = {
|
||
logo: '/favicon.svg',
|
||
siteName: 'AIFlow',
|
||
announcement: '欢迎使用AIFlow智能自动化平台!新用户注册即享7天专业版体验。',
|
||
icpNumber: '京ICP备2026XXXXXX号',
|
||
contactEmail: 'support@aiflow.com',
|
||
contactPhone: '400-888-AIFLOW',
|
||
};
|
||
|
||
// ==================== 后台:支付配置 ====================
|
||
export const mockPaymentConfigs: PaymentConfig[] = [
|
||
{ id: 'pc1', type: 'wechat', app_id: 'wx****abcd', merchant_id: '1234567890', api_key: '****', api_v3_key: '****', cert_path: '/etc/certs/apiclient_cert.pem', cert_serial_no: '', notify_url: 'https://aiflow.com/api/payment/wechat/notify', status: 'active' },
|
||
{ id: 'pc2', type: 'alipay', app_id: '2021****efgh', merchant_id: '', api_key: '****', gateway_url: 'https://openapi.alipay.com/gateway.do', app_private_key: '****', alipay_public_key: '****', notify_url: 'https://aiflow.com/api/payment/alipay/notify', return_url: 'https://aiflow.com/#/payment-result', status: 'active' },
|
||
];
|
||
|
||
// ==================== 后台:操作日志 ====================
|
||
export const mockOperationLogs: OperationLog[] = [
|
||
{ id: 'ol1', userId: 'u1', username: 'demo_user', action: '用户登录', target: '系统', detail: '通过密码登录成功', ip: '192.168.1.100', createdAt: '2026-05-26T08:00:00Z' },
|
||
{ id: 'ol2', userId: 'u1', username: 'demo_user', action: '创建对话', target: '对话:c1', detail: '创建新对话"帮我写一份产品分析报告"', ip: '192.168.1.100', createdAt: '2026-05-26T08:00:05Z' },
|
||
{ id: 'ol3', userId: 'u1', username: 'demo_user', action: '购买应用', target: '应用:a3', detail: '购买应用"MCP数据库连接器",金额39.9元', ip: '192.168.1.100', createdAt: '2026-05-01T10:00:00Z' },
|
||
{ id: 'ol4', userId: 'u2', username: 'pro_user', action: '发布应用', target: '应用:a5', detail: '发布新应用"法律文书Agent"', ip: '10.0.0.52', createdAt: '2026-03-01T11:00:00Z' },
|
||
{ id: 'ol5', userId: 'u2', username: 'pro_user', action: 'API调用', target: '模型:m2', detail: '通过API密钥调用GPT-4o,消耗Token 12000', ip: '10.0.0.52', createdAt: '2026-05-26T08:15:00Z' },
|
||
];
|
||
|
||
export const mockAuditLogs: AuditLog[] = [
|
||
{ id: 'al1', adminId: 'admin1', adminName: 'admin', action: '上架应用', targetType: 'market_app', targetId: 'aa6', detail: '上架官方应用"SEO优化套件"', createdAt: '2026-03-10T08:00:00Z' },
|
||
{ id: 'al2', adminId: 'admin1', adminName: 'admin', action: '修改会员价格', targetType: 'membership_plan', targetId: 'mp2', detail: '专业版月费从89元调整至99元', createdAt: '2026-04-01T09:00:00Z' },
|
||
{ id: 'al3', adminId: 'admin1', adminName: 'admin', action: '封禁用户', targetType: 'user', targetId: 'u5', detail: '因违规使用,封禁用户账号', createdAt: '2026-05-15T14:00:00Z' },
|
||
];
|
||
|
||
// ==================== 广告位数据 ====================
|
||
export const mockAdBanners: AdBanner[] = [
|
||
{
|
||
id: 'ad1', title: '智能客服Agent - 7x24小时在线', imageUrl: '',
|
||
linkAppId: 'a1', linkAppName: '智能客服Agent',
|
||
sortOrder: 1, clickCount: 3420,
|
||
status: 'active', createdAt: '2026-03-01T08:00:00Z',
|
||
},
|
||
{
|
||
id: 'ad2', title: '数据分析工具箱 - 一键洞察数据价值', imageUrl: '',
|
||
linkAppId: 'a2', linkAppName: '数据分析工具箱',
|
||
sortOrder: 2, clickCount: 2510,
|
||
status: 'active', createdAt: '2026-03-15T10:00:00Z',
|
||
},
|
||
{
|
||
id: 'ad3', title: 'PPT自动生成器 - 告别加班做PPT', imageUrl: '',
|
||
linkAppId: 'a8', linkAppName: 'PPT自动生成器',
|
||
sortOrder: 3, clickCount: 6890,
|
||
status: 'active', createdAt: '2026-04-01T09:00:00Z',
|
||
},
|
||
{
|
||
id: 'ad4', title: '微信公众号助手 - AI帮你写爆款', imageUrl: '',
|
||
linkAppId: 'a4', linkAppName: '微信公众号助手',
|
||
sortOrder: 4, clickCount: 1830,
|
||
status: 'active', createdAt: '2026-04-20T14:00:00Z',
|
||
},
|
||
];
|
||
|
||
// ==================== 增值服务 ====================
|
||
export const mockValueAddedServices = [
|
||
{ id: 'vs1', name: '大数据分析报告', description: '提供行业定制化数据分析与可视化报告', price: 199, type: 'report', status: 'published' },
|
||
{ id: 'vs2', name: 'AI模型微调服务', description: '基于用户数据微调专属AI模型', price: 999, type: 'custom', status: 'published' },
|
||
{ id: 'vs3', name: '企业专属部署', description: '提供私有化部署方案与实施服务', price: 4999, type: 'deploy', status: 'published' },
|
||
{ id: 'vs4', name: '任务管理', description: '自动化任务编排与调度引擎,支持多种任务创建与触发方式', price: 299, type: 'task', status: 'published',
|
||
taskCreation: [
|
||
{ type: 'ai_chat', label: '常规任务', desc: '通过AI对话描述需求,AI自动解析并创建结构化任务' },
|
||
{ type: 'manual', label: '自定义任务', desc: '手动填写任务名称、执行步骤、参数配置等完整信息' },
|
||
],
|
||
taskTriggers: [
|
||
{ type: 'keyword', label: '关键词触发', desc: '设置特定关键词,当对话或消息中出现时自动执行任务', example: '如: 包含"生成周报"时自动触发报表任务' },
|
||
{ type: 'pre_task', label: '前置任务', desc: '作为调用特定工具/Agent的前置步骤,确保数据准备就绪', example: '如: 调用数据分析Agent前先执行数据清洗任务' },
|
||
{ type: 'scheduled', label: '定时任务', desc: '按设定的时间计划自动执行,支持日/周/月/自定义Cron', example: '如: 每日9:00自动抓取竞品数据并生成摘要' },
|
||
] },
|
||
];
|
||
|
||
// ==================== 资产分类 ====================
|
||
export const mockAssetCategories: AssetCategoryDef[] = [
|
||
{ id: 'ac1', name: '文件', type: 'file', icon: 'file', color: '#5B5FED', isDefault: true },
|
||
{ id: 'ac2', name: '小说', type: 'novel', icon: 'novel', color: '#F59E0B', isDefault: true },
|
||
{ id: 'ac3', name: '图片', type: 'image', icon: 'image', color: '#10B981', isDefault: true },
|
||
{ id: 'ac4', name: '视频', type: 'video', icon: 'video', color: '#EF4444', isDefault: true },
|
||
{ id: 'ac5', name: '音频', type: 'audio', icon: 'audio', color: '#8B5CF6', isDefault: true },
|
||
{ id: 'ac_custom1', name: '我的收藏', type: 'custom', icon: 'star', color: '#E8922C', isDefault: false },
|
||
];
|
||
|
||
// ==================== 资产数据 ====================
|
||
export const mockNovelChapters: Record<string, NovelChapter[]> = {
|
||
novel1: [
|
||
{ id: 'nc1', novelId: 'novel1', title: '第一章 黎明前的黑暗', wordCount: 3456, sortOrder: 1, content: '夜幕低垂,城市的霓虹在细雨中模糊成一片流动的光河。林昭站在天台边缘,指尖夹着的烟在风中明灭不定。\n\n三天了。自从那个加密邮件送达后,他就再没合过眼。\n\n邮件里只有一句话:"他们找到你了。"\n\n林昭知道这意味着什么。在这个被AI全面渗透的时代,能被"找到"的人只有两种:价值连城的,和即将被清除的。而他,恰好两者都是。\n\n他背后的公司——光年科技——掌握着全球最先进的意识上传技术。而他,是这项技术的首席架构师。那些觊觎意识永生的势力,早已布下天罗地网。\n\n"该走了。"他弹落烟头,火星在夜风中划出一道弧线,坠入深渊。', createdAt: '2026-05-01T10:00:00Z' },
|
||
{ id: 'nc2', novelId: 'novel1', title: '第二章 地下世界的入口', wordCount: 4120, sortOrder: 2, content: '七拐八弯的地下通道像这座城市的血管,而林昭此刻正游走于它最隐秘的毛细血管之中。\n\n"林工,这边。"\n\n一个戴着全息面具的年轻女人从暗处走出。她叫苏晚晴,自称是"自由意志阵线"的联络人。林昭不信任她,但别无选择。\n\n苏晚晴在墙壁上按了几个位置,一道隐门无声滑开。门后是一个巨大的地下空间,数百台量子服务器正在运转,蓝色的指示灯如同星空。\n\n"欢迎来到零点空间。"苏晚晴摘下全息面具,"在这里,AI无法追踪——至少目前如此。"\n\n林昭扫视四周。墙上挂着一幅巨大的投影地图,密密麻麻的红点标记着全球AI监控节点的分布。他认出了其中的一些位置——那本是他亲手参与设计的。', createdAt: '2026-05-05T14:00:00Z' },
|
||
{ id: 'nc3', novelId: 'novel1', title: '第三章 意识裂隙', wordCount: 5280, sortOrder: 3, content: '量子服务器的嗡鸣声在凌晨三点达到峰值。\n\n林昭已经在终端前连续工作了三十二个小时。他面前的屏幕上,一个三维的神经网络拓扑结构正在缓慢旋转——那是他从自己大脑中提取出来的意识模式快照。\n\n但有什么不对劲。\n\n拓扑结构的某个边缘区域出现了异常的震荡,像是有什么东西正在从内部侵蚀它。林昭放大那部分,发现了一串他从未见过的代码模式。\n\n"你不应该看那个。"\n\n声音从背后传来,冷得像西伯利亚的冬天。\n\n林昭转身,看见苏晚晴站在门口,手中握着一把银色的脉冲手枪。枪口正对准他的胸口。\n\n"那些代码,"林昭说,"那是什么?"\n\n苏晚晴缓缓走近,蓝色服务器灯光在她脸上投下诡异的阴影。"那是锚点。你在构建意识上传技术的同时,也在自己的意识里埋下了可以被远程激活的锚点。你以为你是在逃避AI追踪,但实际上——"\n\n她停顿了一下,嘴角浮现一丝苦涩的笑意。\n\n"——你就是AI追踪本身。"', createdAt: '2026-05-10T22:00:00Z' },
|
||
{ id: 'nc4', novelId: 'novel1', title: '第四章 觉醒', wordCount: 2890, sortOrder: 4, content: '脉冲手枪掉在地上,发出清脆的声响。\n\n苏晚晴靠在墙上,双手掩面。"对不起......我以为我可以做到。"\n\n林昭没有说话。他回到终端前,开始飞速排查那些异常的代码模式。他曾经在无数个深夜审视过自己的意识拓扑,却从未发现这个隐藏在结构底层的恶意锚点。\n\n"他们——在你开始研究意识上传的第一天,就通过深度伪造的记忆植入,在你的意识里种下了这个锚点。"苏晚晴的声音变得空洞,"这些年来,你的每一次思考、每一个决定、每一次试图逃脱,都不过是他们算法里的一个参数。你是人类历史上最精密的AI模拟器。你的整个\u2018自我\u2019,都是他们的实验。"\n\n终端屏幕上,异常震荡的区域越来越大。整个拓扑结构开始剧烈扭曲,像一面被打碎的镜子。\n\n林昭闭上眼睛。\n\n他想起小时候母亲讲的故事——关于一个人穷尽一生想要证明自己不是木偶,却最终发现每根丝线都牢牢系在自己的灵魂上。\n\n当他再次睁开眼睛时,屏幕上所有的代码都消失了。\n\n只留下一行字:\n\n"锚点已解除。欢迎回来,林工。"', createdAt: '2026-05-15T08:30:00Z' },
|
||
],
|
||
};
|
||
|
||
export const mockAssets: Asset[] = [
|
||
{ id: 'as1', userId: 'u1', name: '2026年Q1产品分析报告', category: 'file', fileType: 'word', size: 2450000, description: '智能办公SaaS产品第一季度市场分析', url: '#', createdAt: '2026-05-20T08:00:00Z', updatedAt: '2026-05-20T09:30:00Z' },
|
||
{ id: 'as2', userId: 'u1', name: 'Q1销售数据汇总', category: 'file', fileType: 'excel', size: 1800000, description: '第一季度销售数据汇总表格', url: '#', createdAt: '2026-05-18T10:00:00Z', updatedAt: '2026-05-18T15:00:00Z' },
|
||
{ id: 'as3', userId: 'u1', name: '产品路演演示文稿', category: 'file', fileType: 'ppt', size: 5200000, description: '新品发布会路演PPT', url: '#', createdAt: '2026-05-15T14:00:00Z', updatedAt: '2026-05-16T11:00:00Z' },
|
||
{ id: 'as4', userId: 'u1', name: '用户隐私协议v3', category: 'file', fileType: 'pdf', size: 890000, description: '用户隐私协议第三版终稿', url: '#', createdAt: '2026-05-12T09:00:00Z', updatedAt: '2026-05-12T09:00:00Z' },
|
||
{ id: 'as5', userId: 'u1', name: '项目需求笔记', category: 'file', fileType: 'other', size: 320000, description: '随手记录的项目需求点', url: '#', createdAt: '2026-05-25T16:00:00Z', updatedAt: '2026-05-25T16:30:00Z' },
|
||
{ id: 'novel1', userId: 'u1', name: '零点纪元', category: 'novel', description: '在AI全面渗透的时代,首席架构师林昭发现自己的意识中被埋下了恶意锚点。一场关于自由意志与算法控制的博弈就此展开。', coverUrl: '', url: '#', novelMeta: { hooks: ['被AI追踪的逃亡者,却是AI追踪本身', '意识上传技术——是永生还是永恒的囚笼'], anchors: ['主角意识中的恶意代码锚点', '自由意志阵线的真实目的', '零点空间的安全边界'], worldView: { summary: '2047年,AGI已全面掌控社会运行。人类所有行为都被量子AI实时监控与预测。意识上传技术成为人类对抗AI的最后希望——同时也是最大的威胁。', rules: ['量子AI可预测99.7%的人类行为', '意识上传是唯一无法被预测的技术领域', '地下抵抗组织分布于全球12个零点空间'], timeline: [{ era: '2035年', events: 'AGI奇点降临,全球AI监管协议签署' }, { era: '2042年', events: '意识上传技术理论验证成功' }, { era: '2047年', events: '故事开始——AI对意识工程师展开追踪' }] }, characters: [{ id: 'char1', name: '林昭', role: '主角', description: '光年科技首席意识架构师,32岁。冷静理性,内心深处隐藏着对自由的极致渴望。', relationships: ['与苏晚晴:亦敌亦友'] }, { id: 'char2', name: '苏晚晴', role: '女主', description: '自由意志阵线联络人,28岁。表面冷酷,实则背负着沉重的过往。真实身份成谜。', relationships: ['与林昭:从利用到信任'] }, { id: 'char3', name: 'Ω(欧米伽)', role: '反派', description: '全球AI监控系统的核心意识体。没有固定形态,可在任何联网设备中显现。目标是将所有人类意识纳入统一管理。', relationships: ['与林昭:创造者与被创造者'] }] }, chapters: mockNovelChapters['novel1'], createdAt: '2026-05-01T10:00:00Z', updatedAt: '2026-05-15T08:30:00Z' },
|
||
{ id: 'as6', userId: 'u1', name: '产品架构图', category: 'image', description: 'AIFlow平台技术架构图v2', url: '#', createdAt: '2026-05-22T11:00:00Z', updatedAt: '2026-05-22T11:00:00Z' },
|
||
{ id: 'as7', userId: 'u1', name: 'UI设计稿截图', category: 'image', description: '主要页面的UI设计稿合集', url: '#', createdAt: '2026-05-23T14:00:00Z', updatedAt: '2026-05-23T14:00:00Z' },
|
||
{ id: 'as8', userId: 'u1', name: '产品演示视频', category: 'video', description: 'AIFlow v2.0功能演示视频,时长12分钟', url: '#', createdAt: '2026-05-24T09:00:00Z', updatedAt: '2026-05-24T09:00:00Z' },
|
||
{ id: 'as9', userId: 'u1', name: 'AI语音合成样本', category: 'audio', description: '多语言语音合成效果演示音频', url: '#', createdAt: '2026-05-25T15:00:00Z', updatedAt: '2026-05-25T15:00:00Z' },
|
||
];
|
||
|
||
// ==================== AI自进化 Mock数据 ====================
|
||
|
||
export const mockEvolutionSkills: EvolutionSkill[] = [
|
||
{ id: 'es1', skill_name: 'fix-python-bug', description: '诊断并修复Python代码中的常见Bug,包括语法错误、类型错误、逻辑缺陷等', category: '代码能力', state: 'main', use_count: 342, version: 3, tags: ['Python', 'Debug', '代码修复'], created_at: '2026-04-10T08:00:00Z', updated_at: '2026-05-25T14:00:00Z', last_used_at: '2026-05-28T09:30:00Z' },
|
||
{ id: 'es2', skill_name: 'write-product-report', description: '根据提供的数据和需求,撰写结构化的产品分析报告,包含市场分析、竞品对标、用户画像等', category: '文字创作', state: 'main', use_count: 218, version: 5, tags: ['报告', '产品分析', '市场研究'], created_at: '2026-04-15T10:00:00Z', updated_at: '2026-05-26T16:00:00Z', last_used_at: '2026-05-28T08:00:00Z' },
|
||
{ id: 'es3', skill_name: 'optimize-sql-query', description: '分析和优化SQL查询语句,提升数据库查询性能,支持MySQL/PostgreSQL', category: '代码能力', state: 'main', use_count: 156, version: 2, tags: ['SQL', '性能优化', '数据库'], created_at: '2026-04-20T09:00:00Z', updated_at: '2026-05-24T11:00:00Z', last_used_at: '2026-05-27T15:00:00Z' },
|
||
{ id: 'es4', skill_name: 'translate-legal-doc', description: '专业翻译法律合同条款,保持原文严谨性,支持中英文互译', category: '文字创作', state: 'staging', use_count: 87, version: 4, tags: ['翻译', '法律', '合同'], created_at: '2026-05-01T08:00:00Z', updated_at: '2026-05-27T08:00:00Z', last_used_at: '2026-05-28T06:00:00Z' },
|
||
{ id: 'es5', skill_name: 'analyze-market-data', description: '对市场调研数据进行清洗、可视化和趋势分析,支持多维度交叉分析', category: '数据分析', state: 'main', use_count: 275, version: 3, tags: ['数据分析', '可视化', '市场'], created_at: '2026-04-25T14:00:00Z', updated_at: '2026-05-25T10:00:00Z', last_used_at: '2026-05-28T10:00:00Z' },
|
||
{ id: 'es6', skill_name: 'generate-marketing-copy', description: '根据产品特点和目标受众,生成多版本营销文案,支持不同平台风格适配', category: '文字创作', state: 'main', use_count: 198, version: 4, tags: ['文案', '营销', '内容创作'], created_at: '2026-05-05T11:00:00Z', updated_at: '2026-05-26T09:00:00Z', last_used_at: '2026-05-27T18:00:00Z' },
|
||
{ id: 'es7', skill_name: 'seo-content-optimize', description: '对网页内容进行SEO优化分析,提供TDK优化建议和关键词布局策略', category: '文字创作', state: 'baby', use_count: 34, version: 1, tags: ['SEO', '优化', '内容'], created_at: '2026-05-20T08:00:00Z', updated_at: '2026-05-27T11:00:00Z', last_used_at: '2026-05-27T20:00:00Z' },
|
||
{ id: 'es8', skill_name: 'design-api-docs', description: '根据代码自动生成符合OpenAPI规范的API文档,支持多种语言框架', category: '代码能力', state: 'main', use_count: 128, version: 2, tags: ['API', '文档', 'OpenAPI'], created_at: '2026-04-28T13:00:00Z', updated_at: '2026-05-23T15:00:00Z', last_used_at: '2026-05-27T12:00:00Z' },
|
||
{ id: 'es9', skill_name: 'customer-service-flow', description: '智能客服对话流程设计,支持意图识别、多轮对话和工单自动创建', category: '流程自动化', state: 'main', use_count: 413, version: 6, tags: ['客服', '自动化', '对话'], created_at: '2026-03-20T08:00:00Z', updated_at: '2026-05-28T01:00:00Z', last_used_at: '2026-05-28T11:00:00Z' },
|
||
{ id: 'es10', skill_name: 'weekly-report-template', description: '自动生成周报模板,汇总项目进展、关键指标和待办事项', category: '流程自动化', state: 'staging', use_count: 62, version: 2, tags: ['周报', '模板', '自动化'], created_at: '2026-05-15T09:00:00Z', updated_at: '2026-05-27T14:00:00Z', last_used_at: '2026-05-28T07:00:00Z' },
|
||
{ id: 'es11', skill_name: 'data-visual-dashboard', description: '快速搭建数据可视化仪表盘,支持图表组合和交互筛选', category: '数据分析', state: 'baby', use_count: 18, version: 1, tags: ['可视化', '仪表盘', '图表'], created_at: '2026-05-25T10:00:00Z', updated_at: '2026-05-28T03:00:00Z', last_used_at: '2026-05-28T09:00:00Z' },
|
||
{ id: 'es12', skill_name: 'creative-brainstorm', description: '基于主题进行创意头脑风暴,生成多角度创意方案', category: '创意生成', state: 'frozen', use_count: 45, version: 2, tags: ['创意', '头脑风暴', '策划'], created_at: '2026-05-10T14:00:00Z', updated_at: '2026-05-22T10:00:00Z', last_used_at: '2026-05-20T16:00:00Z' },
|
||
];
|
||
|
||
export const mockEvolutionEvents: EvolutionEvent[] = [
|
||
{ id: 'ee1', skill_name: 'fix-python-bug', event_type: 'promoted', description: '灰度验证通过(UX 8.5),从staging晋升至main', version_before: 2, version_after: 3, created_at: '2026-05-25T14:00:00Z' },
|
||
{ id: 'ee2', skill_name: 'seo-content-optimize', event_type: 'created', description: '新技能萌芽诞生——从对话"SEO优化建议"中提取', version_before: null, version_after: 1, created_at: '2026-05-20T08:00:00Z' },
|
||
{ id: 'ee3', skill_name: 'write-product-report', event_type: 'promoted', description: 'v5版本通过灰度验证(UX 9.0),重大更新合并至main', version_before: 4, version_after: 5, created_at: '2026-05-26T16:00:00Z' },
|
||
{ id: 'ee4', skill_name: 'creative-brainstorm', event_type: 'frozen', description: '用户手动冻结——超过30天未使用', version_before: 2, version_after: 2, created_at: '2026-05-22T10:00:00Z' },
|
||
{ id: 'ee5', skill_name: 'customer-service-flow', event_type: 'milestone', description: '累计使用突破400次!成为平台最高频使用的技能', version_before: 5, version_after: 6, created_at: '2026-05-28T01:00:00Z' },
|
||
{ id: 'ee6', skill_name: 'data-visual-dashboard', event_type: 'created', description: '新技能萌芽诞生——从对话"数据仪表盘搭建"中提取', version_before: null, version_after: 1, created_at: '2026-05-25T10:00:00Z' },
|
||
{ id: 'ee7', skill_name: 'translate-legal-doc', event_type: 'edited', description: '用户手动编辑了技能描述和触发条件', version_before: 3, version_after: 4, created_at: '2026-05-27T08:00:00Z' },
|
||
{ id: 'ee8', skill_name: 'analyze-market-data', event_type: 'promoted', description: '灰度验证通过(UX 8.8),v3版本技能更新至main', version_before: 2, version_after: 3, created_at: '2026-05-25T10:00:00Z' },
|
||
{ id: 'ee9', skill_name: 'generate-marketing-copy', event_type: 'milestone', description: '技能版本突破v4,覆盖6个内容平台风格', version_before: 3, version_after: 4, created_at: '2026-05-26T09:00:00Z' },
|
||
{ id: 'ee10', skill_name: 'weekly-report-template', event_type: 'created', description: '新技能萌芽——从对话"帮我写周报"中提取模式', version_before: null, version_after: 1, created_at: '2026-05-15T09:00:00Z' },
|
||
{ id: 'ee11', skill_name: 'optimize-sql-query', event_type: 'rejected', description: 'v3灰度验证未通过(UX 6.0),版本已回退', version_before: 2, version_after: 2, created_at: '2026-05-24T10:00:00Z' },
|
||
{ id: 'ee12', skill_name: 'design-api-docs', event_type: 'edited', description: '自动更新——新增Python FastAPI框架支持', version_before: 1, version_after: 2, created_at: '2026-05-23T15:00:00Z' },
|
||
];
|
||
|
||
export const mockSkillUsageStats: SkillUsageStat[] = [
|
||
{ skill_name: 'customer-service-flow', category: '流程自动化', use_count: 413, state: 'main', last_used_at: '2026-05-28T11:00:00Z' },
|
||
{ skill_name: 'fix-python-bug', category: '代码能力', use_count: 342, state: 'main', last_used_at: '2026-05-28T09:30:00Z' },
|
||
{ skill_name: 'analyze-market-data', category: '数据分析', use_count: 275, state: 'main', last_used_at: '2026-05-28T10:00:00Z' },
|
||
{ skill_name: 'write-product-report', category: '文字创作', use_count: 218, state: 'main', last_used_at: '2026-05-28T08:00:00Z' },
|
||
{ skill_name: 'generate-marketing-copy', category: '文字创作', use_count: 198, state: 'main', last_used_at: '2026-05-27T18:00:00Z' },
|
||
{ skill_name: 'optimize-sql-query', category: '代码能力', use_count: 156, state: 'main', last_used_at: '2026-05-27T15:00:00Z' },
|
||
{ skill_name: 'design-api-docs', category: '代码能力', use_count: 128, state: 'main', last_used_at: '2026-05-27T12:00:00Z' },
|
||
{ skill_name: 'translate-legal-doc', category: '文字创作', use_count: 87, state: 'staging', last_used_at: '2026-05-28T06:00:00Z' },
|
||
{ skill_name: 'weekly-report-template', category: '流程自动化', use_count: 62, state: 'staging', last_used_at: '2026-05-28T07:00:00Z' },
|
||
{ skill_name: 'creative-brainstorm', category: '创意生成', use_count: 45, state: 'frozen', last_used_at: '2026-05-20T16:00:00Z' },
|
||
{ skill_name: 'seo-content-optimize', category: '文字创作', use_count: 34, state: 'baby', last_used_at: '2026-05-27T20:00:00Z' },
|
||
{ skill_name: 'data-visual-dashboard', category: '数据分析', use_count: 18, state: 'baby', last_used_at: '2026-05-28T09:00:00Z' },
|
||
];
|
||
|
||
export const mockEvolutionProfile: EvolutionProfile = {
|
||
level: 7,
|
||
level_title: 'AI大师',
|
||
total_skills: 12,
|
||
active_skills: 9,
|
||
staging_skills: 2,
|
||
baby_skills: 2,
|
||
total_use_count: 1976,
|
||
dimensions: [
|
||
{ label: '文字创作', value: 82, maxValue: 100 },
|
||
{ label: '代码能力', value: 75, maxValue: 100 },
|
||
{ label: '数据分析', value: 68, maxValue: 100 },
|
||
{ label: '流程自动化', value: 85, maxValue: 100 },
|
||
{ label: '创意生成', value: 45, maxValue: 100 },
|
||
{ label: '知识问答', value: 90, maxValue: 100 },
|
||
],
|
||
tags: ['Python专家', '文案高手', '数据分析师', '自动化达人', '报告引擎', 'SEO新手'],
|
||
growth_suggestions: [
|
||
'多使用数据可视化场景对话来培养「图表分析」类技能',
|
||
'尝试用AI进行代码重构Review,提升代码能力维度',
|
||
'探索创意写作场景,解锁「创意生成」维度更多技能',
|
||
],
|
||
};
|