Commit Graph

21 Commits

Author SHA1 Message Date
movingsam
5cbfb2866c refactor: clean up Member module and update Console
- Remove redundant PointsRule repositories (use single PointsRuleRepository)
- Clean up Member migrations and consolidate to single Init migration
- Update Console frontend API and components for Tenant
- Add H5LinkService for member H5 integration
2026-02-18 23:34:40 +08:00
movingsam
cd9be23693 feat(member): add member management module with frontend and backend
- Add MemberQueryEndpoints with CRUD operations and status management
- Add frontend member management pages (list, detail, points, tags)
- Add frontend routes and API client for member module
- Move completed docs to docs/completed/
2026-02-17 16:29:34 +08:00
sam
75b2d130c2 refactor: major project restructuring and cleanup
Changes:

- Remove deprecated Fengling.Activity and YarpGateway.Admin projects

- Add points processing services with distributed lock support

- Update Vben frontend with gateway management pages

- Add gateway config controller and database listener

- Update routing to use header-mixed-nav layout

- Add comprehensive test suites for Member services

- Add YarpGateway integration tests

- Update package versions in Directory.Packages.props

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-02-15 10:34:07 +08:00
sam
8e0448d5c2 docs: reorganize documentation structure
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-02-15 10:32:23 +08:00
Sam
ef599f9465 fix: unblock frontend logs directory in gitignore
Add exception rules to both root and subproject .gitignore files to allow tracking the frontend logs page component at src/Fengling.Console.Web.Vben/apps/web-ele/src/views/fengling/logs/
2026-02-14 13:25:16 +08:00
Sam
bda792c89d feat(member): change MemberId to Guid strongly typed id
- Convert MemberId from long to Guid strongly typed ID
- Update all Member commands to use record pattern with MemberId
- Update all Member endpoints to use record pattern with MemberId
- Update entity configurations to use GuidVersion7ValueGenerator
- Add implicit conversion operators for MemberId

Migration: ChangeMemberIdToGuid
2026-02-10 00:41:35 +08:00
Sam
d2d70b462e fix: 修复前端API调用和响应处理,补全i18n多语言包
1. 修复启动卡住问题
   - 创建专用 authRequestClient 连接到认证中心
   - 修复认证相关API路由错误

2. 修复API响应处理
   - 移除错误的 defaultResponseInterceptor
   - 添加自定义响应拦截器直接返回 response.data
   - 修复分页数据提取(response.items)

3. 修复类型定义
   - Tenant: contactPhone 可选,status 改为 string
   - User: 添加 phone, tenantId, tenantName, emailConfirmed
   - Role: 添加 tenantId, isSystem, userCount
   - OAuth: 修改 Id 类型为 string
   - 修正所有 DTO 的必填字段

4. 修复查询参数
   - 租户列表使用 name 而不是 keyword

5. 补全 i18n 多语言包
   - 添加 app, tenant, user, role, oauth, common 模块
   - 中文:"蜂铃管理平台"、"蜂铃控制台"
   - 英文:Fengling Management Platform、Fengling Console

6. 修复租户管理逻辑
   - 添加 editingId 跟踪编辑状态
   - 修复 handleSave 使用正确的租户ID
2026-02-08 20:18:36 +08:00
Sam
fa93d71725 feat: 添加OAuth2认证配置和实现
添加OAuth2认证相关配置文件和服务实现,包括环境变量配置、PKCE流程支持、token管理等功能。主要变更:
- 新增OAuth2配置文件
- 实现OAuth2服务层
- 更新请求拦截器支持token自动刷新
- 修改认证API和store以支持OAuth2流程
2026-02-07 17:47:11 +08:00
Sam
e32b8b3080 fix: update auth service URL to port 5132
- Change VITE_AUTH_SERVICE_URL from localhost:5000 to localhost:5132
- This matches the actual auth service port in launchSettings.json
2026-02-06 16:16:20 +08:00
Sam
b0f656da63 fix: remove 'roles' from default scope to prevent 403 error
- Remove 'roles' from default oauthConfig scope
- Roles scope is not registered in OpenIddict
- This was causing 403 Forbidden when requesting access token
2026-02-06 15:50:16 +08:00
Sam
8bd64b8ea3 fix: remove unregistered 'roles' scope from OAuth2 requests
- Remove 'roles' from .env.development and .env.production
- Remove 'roles' from SeedData.cs
- 403 error was caused by requesting unregistered scope
- All registered scopes: openid, profile, email, api, offline_access
2026-02-06 15:49:40 +08:00
Sam
65ea3ecf79 feat: export OAuth2 service functions 2026-02-06 01:48:19 +08:00
Sam
c0874bfab8 feat: implement OAuth2 integration in web-ele
- Add OAuth2 configuration and PKCE service
- Update request interceptor for OAuth2 token management
- Update auth API for OAuth2 token handling
- Update auth store for OAuth2 flow
- Create OAuth callback page
- Update login page for OAuth2
- Add OAuth callback route
- Update environment configuration for OAuth2
2026-02-06 01:47:05 +08:00
Sam
02415839ab feat: add OAuth2 configuration to web-ele 2026-02-06 01:44:17 +08:00
Sam
0003b0f1fd feat: implement OAuth 2.0 login flow with auto-redirect
- Modify login page to auto-redirect to auth center
- Update auth store to use OAuth login flow
- Handle OAuth callback and token exchange
- Update logout to use OAuth logout endpoint
2026-02-06 01:14:11 +08:00
Sam
0ebe467927 feat: integrate OAuth 2.0 authentication with Fengling Auth Center 2026-02-06 00:41:41 +08:00
Sam
393296ef3d fix: rename typings.d.ts to typings.ts for proper module resolution 2026-02-06 00:38:28 +08:00
Sam
87db42b5db feat(fengling): add routes and pages for Fengling Console management 2026-02-06 00:30:00 +08:00
Sam
e5bbe101c9 chore: configure environment variables for Fengling API 2026-02-06 00:14:35 +08:00
Sam
9b5198f87a feat(api): migrate TypeScript type definitions and API services 2026-02-06 00:11:36 +08:00
Sam
9600147586 chore: initialize Vben Admin project 2026-02-06 00:04:38 +08:00