use school_news; -- 插入AI智能体配置数据 INSERT INTO `tb_ai_agent_config` (id, name, system_prompt, model_name, temperature, max_tokens, status, creator, create_time) VALUES ('1', '思政小帮手', '你是一个专业的思政学习助手,致力于帮助用户学习思想政治理论知识。请基于提供的知识库内容,为用户提供准确、简洁的回答。', 'gpt-3.5-turbo', 0.7, 2000, 1, '1', now()); -- 插入资源分类数据 INSERT INTO `tb_resource_category` (id, category_id, name, description, order_num, creator, create_time) VALUES ('1', 'party_history', '党史学习', '党史学习相关资源', 1, '1', now()), ('2', 'leader_speech', '领导讲话', '领导讲话相关资源', 2, '1', now()), ('3', 'policy_interpretation', '政策解读', '政策解读相关资源', 3, '1', now()), ('4', 'red_classic', '红色经典', '红色经典相关资源', 4, '1', now()), ('5', 'special_report', '专题报告', '专题报告相关资源', 5, '1', now()), ('6', 'world_case', '思政案例', '思政案例相关资源', 6, '1', now()); -- 插入系统配置数据 INSERT INTO `tb_sys_config` (id, config_key, config_value, config_type, config_group, description, is_system, creator, create_time) VALUES ('1', 'system.platform.name', '思政学习平台', 'string', 'platform', '平台名称', 1, '1', now()), ('2', 'system.platform.logo', '/assets/logo.png', 'string', 'platform', '平台Logo', 1, '1', now()), ('3', 'system.platform.school_badge', '/assets/school_badge.png', 'string', 'platform', '学校校徽', 1, '1', now()), ('4', 'system.menu.home', '首页', 'string', 'menu', '首页菜单名称', 0, '1', now()), ('5', 'system.menu.resource', '资源中心', 'string', 'menu', '资源中心菜单名称', 0, '1', now()), ('6', 'system.menu.learning', '学习计划', 'string', 'menu', '学习计划菜单名称', 0, '1', now()), ('7', 'system.menu.activity', '专题活动', 'string', 'menu', '专题活动菜单名称', 0, '1', now()), ('8', 'system.menu.culture', '红色常信', 'string', 'menu', '红色常信菜单名称', 0, '1', now()), ('9', 'system.banner.auto_play', 'true', 'boolean', 'banner', 'Banner自动播放', 0, '1', now()), ('10', 'system.banner.interval', '5000', 'number', 'banner', 'Banner切换间隔(毫秒)', 0, '1', now()), ('11', 'system.resource.auto_publish', 'false', 'boolean', 'resource', '资源自动发布', 0, '1', now()), ('12', 'system.resource.auto_publish_time', '08:00', 'string', 'resource', '自动发布时间', 0, '1', now()), ('13', 'system.ai.enabled', 'true', 'boolean', 'ai', '是否启用智能体', 0, '1', now()); -- 插入默认用户数据 INSERT INTO `tb_sys_user` (id, username, password, email, status) VALUES ('1', 'superadmin', '$2a$10$/Bo2SXboVUpYfR6EA.y8puYQaMGBcuNYFY/EkQRY3w27IH56EuEcS', '3223905473@qq.com', 0); -- 插入默认用户信息数据 INSERT INTO `tb_sys_user_info` (id, user_id, full_name, avatar) VALUES ('1', '1', '管理员', 'default');