bwstudio
db8cea02f8
feat: 提示词和 AI 参数移至数据库管理
...
- AiSetting 模型新增 6 个提示词字段 + 3 个阶段温度字段
- main.py 迁移逻辑改为检测 ai_settings 表的新字段并填充默认值
- generate.py 从数据库读取生成提示词,去掉硬编码
- optimizer 从 API 读取各阶段提示词和温度,删除 prompts.py
- crawler 从 API 读取提取/改写提示词和温度,删除 prompts.py
- settings/active 端点去掉 token 认证(供爬虫/优化器使用)
- 后台设置页新增提示词编辑区和温度调节控件
- 新增 _ensure_default_settings 自动创建默认配置
2026-06-13 17:27:09 +08:00
bwstudio
fde86b90d2
feat: 新增点踩功能,列表卡片和详情页支持 👍 / 👎 投票
...
- 后端: 新增 dislike_count 字段(模型/Schema/数据库迁移)
- 后端: 新增 POST /api/jokes/{id}/dislike 端点
- 后端: 管理后台统计新增 total_dislikes
- 前端: 新增 useVote 组合函数(localStorage 持久化防重复)
- 前端: JokeCard 列表卡片新增 👍 /👎 可点击投票按钮
- 前端: 详情页 ❤️ 改为 👍 赞一下 / 👎 踩一脚 双按钮
2026-06-11 19:17:12 +08:00
bwstudio
595394fcb7
feat: 前后台静态资源路径冲突修复 + 用户管理功能
...
- 修改 admin/vite.config.js 添加 base: '/admin/' 解决静态资源路径问题
- 修复后台 index.html 资源引用从 /assets/ → /admin/assets/
- 更新优化器默认 API 地址为服务器地址
- 添加友链管理相关代码
- 修复多处分类管理页面
2026-06-10 07:30:49 +08:00
bwstudio
f28c413351
feat(api): add joke generate endpoint with AI
2026-06-02 20:00:41 +08:00
bwstudio and Claude Opus 4.7
c3a8e3e311
feat(api): implement FastAPI routes with JWT authentication
...
- jokes.py: Public joke listing, detail, and random endpoints
- categories.py: Type and crowd listing endpoints
- auth.py: Login endpoint with JWT token generation
- admin.py: Full CRUD for jokes, types, crowds with JWT protection
- Fix request body schemas to use Create DTOs instead of Response models
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 21:02:59 +08:00
bwstudio
57245cc288
feat(api): project initialization
2026-05-21 20:39:14 +08:00