dark
208992d80a
feat: add AI Chat page with SSE streaming support
- Left sidebar: conversation list, new chat, balance display
- Center: message list with real-time streaming
- Bottom: textarea input with model selector
- Auto-scroll, conversation CRUD, rename/delete
1 month ago
dark
45f614f61a
feat: add AI types and API client methods (incl SSE streaming)
- AI types: AIModelInfo, AIConversation, AIChatMessage, AIQuotaInfo
- chatStream() AsyncGenerator for SSE streaming
- Conversation CRUD + model list + quota API methods
1 month ago
dark
9be5893f6f
feat: implement conversation CRUD + model list + quota logic
- Conversation list/create/get/update/delete (user-scoped)
- Model list with provider names
- Quota info (ensure + return balance)
1 month ago
dark
f1d1549595
feat: implement AI chat completions with SSE streaming
- Custom SSE handler (replaces goctl stub)
- Chat() for non-streaming, ChatStream() for SSE
- Provider selection (user key > system key)
- Quota freeze/settle/unfreeze billing flow
- Usage recording + conversation message saving
1 month ago
dark
e672c8eb76
feat: add AI API definitions and goctl-generated code
- ai.api: chat completions, conversations CRUD, models, quota
- 8 handlers + 8 logic stubs generated
- Routes registered with Cors,Log,Auth middleware
1 month ago
dark
0e3173189f
feat: add AI billing module (quota + usage)
- QuotaService: CheckAndFreeze, Settle, Unfreeze
- UsageService: Record, UpdateConversationStats
- Skip billing for user-provided API keys
1 month ago
dark
9f7466064c
feat: seed AI providers, models, Casbin policies, menu
- 5 providers: OpenAI, Claude, Qwen, Zhipu, DeepSeek
- 9 models with pricing and capabilities
- Casbin policies for AI routes (user role)
- AI 对话 menu item
1 month ago
dark
3937c72d14
feat: add AI provider abstraction layer
- AIProvider interface (Chat + ChatStream)
- OpenAI-compatible adapter (covers OpenAI, Qwen, Zhipu, DeepSeek)
- Anthropic adapter (Claude models)
- Factory pattern for provider creation
- Unified types (ChatRequest, ChatResponse, StreamChunk)
1 month ago
dark
82bfcb7592
feat: add AI model CRUD functions (7 models)
- Provider/Model/ApiKey: standard CRUD + special lookups
- Conversation: user-scoped pagination
- ChatMessage: conversation-ordered retrieval
- UsageRecord: insert + user-scoped pagination
- UserQuota: freeze/settle/unfreeze atomic operations
1 month ago
dark
332f2cf59b
feat: add 7 AI entity models + AutoMigrate
- AIProvider, AIModel, AIApiKey (platform config)
- AIConversation, AIChatMessage (chat data)
- AIUsageRecord, AIUserQuota (billing data)
- AutoMigrate updated in servicecontext.go
1 month ago
dark
8663c768c2
chore: add openai and anthropic Go SDKs
- github.com/sashabaranov/go-openai v1.41.2
- github.com/anthropics/anthropic-sdk-go v1.22.1
1 month ago
dark
192b3803db
docs: AI API proxy Phase 1 implementation plan (14 tasks)
Covers: 7 GORM models, Provider adapters (OpenAI-compat + Anthropic),
SSE streaming, billing module, API definitions, conversation CRUD,
seed data, frontend types/API client, AIChatPage, route registration
1 month ago
dark
c1e1625ef2
docs: AI API 中转功能设计文档
覆盖:数据模型(7张表)、Provider适配层(Strategy模式)、
SSE流式实现、混合Key管理、完整计费系统、前端5个页面规划
1 month ago
dark
c35a337695
fix: 修复文件上传按钮无响应和登录错误无提示两个 bug
1. FileManagementPage: hidden input 从 display:none 改为 absolute+opacity:0,
Button 添加 type="button" 防止表单提交
2. AuthContext: login() 在 response.success 为 false 时抛出错误,
使 LoginPage 能正确显示错误提示
3. 更新 file-management.e2e.test.ts,8/8 测试通过
1 month ago
dark
dea4ae80b6
feat: register routes for MyPage, MenuManagement, RoleManagement, OrganizationManagement
1 month ago
dark
b411ac169a
feat: frontend types, API client, AuthContext, and dynamic sidebar
1 month ago
dark
38f4e740fa
feat: implement all backend logic for menu, role, org management
1 month ago
dark
6df3f8795f
feat: API definitions and goctl generated code for menu/role/org
1 month ago
dark
41b1e091ce
feat: add currentOrgId to User entity, JWT Claims, and auth middleware
1 month ago
dark
a29e593b06
feat: add Menu, Role, RoleMenu, Organization, UserOrganization models
1 month ago
dark
bbb7b09a3a
docs: 菜单管理+角色管理+机构管理 实施计划
1 month ago
dark
fd13bf9470
docs: 菜单管理+角色管理+机构管理 设计文档
1 month ago
dark
68aa11fa64
fix: separate Air binary path and args for Windows compatibility
1 month ago
dark
6326bd5970
chore: update test config for account-based login
1 month ago
dark
e31c274a64
feat: frontend login accepts phone/username, remove email from auth flow
1 month ago
dark
d2cb7fa8c8
feat: login by phone/username, register requires phone, seed uses username
1 month ago
dark
f7ab873ca7
refactor: remove email from JWT Claims and auth context
1 month ago
dark
194b16c6ec
feat: add FindOneByPhone and FindOneByUsername
1 month ago
dark
91d83e7f4a
feat: add Air hot reload config for backend development
1 month ago
dark
fb56475faf
docs: 添加热重载+登录改造实施计划
1 month ago
dark
679a174d0e
docs: 添加热重载和登录改造设计文档
1 month ago
dark
d92aba8294
feat: 仪表盘对接后端 API,添加仪表盘 E2E 测试
1 month ago
dark
e7df5f0d6f
fix: 仪表盘使用真实用户数据替代模拟数据
1 month ago
dark
ecc519e322
feat: 添加删除用户确认弹窗
1 month ago
dark
ea819fa7e4
fix: 修复 API 数据格式兼容性问题,完成 E2E CRUD 测试
1 month ago
dark
c44c0a86c5
fix: resolve naming conflict between Activity type and icon
1 month ago
dark
d4ac14fba9
test: add complete E2E CRUD tests for user management with verification
1 month ago
dark
89bc5f0a20
feat: add API verification script and update package.json
1 month ago
dark
8883b23e49
feat: integrate real APIs for Dashboard, Settings and UserManagement pages
1 month ago
dark
02299dfaa1
Add Profile and Dashboard API methods and types
- Add getProfile(), updateProfile(), changePassword() methods to apiClient
- Add getDashboardStats(), getRecentActivities() methods to apiClient
- Add DashboardStats and Activity types
- Update UpdateProfileRequest to include username field
1 month ago
dark
08730a8bfa
test: add comprehensive test execution guide
1 month ago
dark
cf28600cfc
test: add main test suite entry point
1 month ago
dark
e57fb7088a
test: add navigation and route protection Playwright MCP tests
1 month ago
dark
4ae8861481
test: add settings page Playwright MCP tests
1 month ago
dark
f80b2903fb
test: add user management page Playwright MCP tests
1 month ago
dark
099ac92b88
test: add dashboard page Playwright MCP tests
1 month ago
dark
8e35094243
test: add login page Playwright MCP tests
1 month ago
dark
9ae5c5b8ad
test: add Playwright MCP test configuration and documentation
1 month ago
dark
3bcdb439c8
添加 React 前端 PC 版本
1 month ago
dark
40e5ccfb70
user
1 month ago