Commit Graph

61 Commits

Author SHA1 Message Date
movingsam
4d3fb84663 chore(solution): 删除解决方案中的Dockerfile引用
- 从解决方案文件中移除对Dockerfile的引用
- 保持.gitea工作流文件docker.yml的引用不变
- 优化解决方案结构,避免无用文件引用
2026-02-28 18:04:53 +08:00
movingsam
c50615d8d1 refactor: 将项目文件迁移到 src 目录并创建 slnx 解决方案
- 将 Controllers, Services, Models, Properties 等目录移至 src/ 下
- 创建 Fengling.Console.slnx Rider 解决方案文件
- 更新 csproj 中的项目引用路径
- 修复 CI/CD 配置:
  - build.yml: 更新项目路径为 src/Fengling.Console.csproj
  - docker.yml: 添加 Dockerfile 路径指向 src/Dockerfile
  - Dockerfile: 修复 COPY 路径以匹配新的目录结构

Closes #重构项目结构
2026-02-28 18:04:16 +08:00
movingsam
ca491924ae feat: 添加 CPM 中央包管理和 CI/CD 配置
- 添加 global.json 统一 .NET SDK 版本 (10.0.103)
- 添加 Directory.Build.props 和 Directory.Packages.props 中央包管理
- 添加 NuGet.Config 包源映射 (gitea + nuget.org)
- 添加 CI 工作流: build.yml (编译), docker.yml (构建镜像), deploy.yml (K8s 部署)
- 添加 k8s/ 目录: deployment.yaml, service.yaml
- 修复项目引用路径
- 升级 Swashbuckle 7.1.0 + Microsoft.OpenApi 1.6.28 解决 .NET 10 兼容性
2026-02-28 14:05:38 +08:00
e945de5872 Update secret name to GITEATOKEN
Some checks failed
Build and Push Docker / build (push) Failing after 6m30s
2026-02-26 13:05:37 +08:00
573f135367 Update Docker CI for org
Some checks failed
Build and Push Docker / build (push) Failing after 30s
2026-02-26 13:00:18 +08:00
8495a8ad9e Add Docker CI workflow
Some checks failed
Build and Push Docker / build (push) Failing after 31s
2026-02-26 10:58:40 +08:00
b639206258 Add Dockerfile 2026-02-26 10:55:47 +08:00
Sam
65063af016 Remove bin folder 2026-02-25 18:44:37 +08:00
Sam
134d61fb45 Add .gitignore 2026-02-25 17:26:54 +08:00
movingsam
df7c7e0717 调整项目 2026-02-21 15:05:37 +08:00
movingsam
fc8fcc7de2 refactor(console): remove Repository layer, use Manager pattern
- Remove Repositories folder (IUserRepository, UserRepository, IRoleRepository, RoleRepository)
- Remove Managers folder (old TenantManager)
- Remove Datas folder (old ApplicationDbContext)
- Remove Models/Entities folder (old domain entities)
- Remove EntityConfigurations folder
- Update Services to use UserManager/RoleManager/PlatformDbContext directly
- Update DTOs to use Platform's TenantStatus
2026-02-21 13:52:37 +08:00
movingsam
f33acacbbc refactor(platform): migrate Tenant to anemia model, use Manager pattern
- Convert Tenant to anemia model with long Id (no strong-typed ID)
- Add ApplicationUser, ApplicationRole to Platform.Domain (inherit Identity)
- Add TenantInfo value object for user-tenant redundancy
- Implement TenantManager/TenantStore in Platform.Infrastructure
- Update PlatformDbContext to inherit IdentityDbContext
- Migrate AuthService and Console to use Platform entities
- Remove old TenantRepository (replaced by TenantManager)
- Update AGENTS.md documentation
2026-02-21 13:22:08 +08:00
movingsam
d32b44bfc4 Merge branch 'feature/tenant-manager' 2026-02-19 21:43:44 +08:00
movingsam
0d64b61169 refactor(console): migrate tenant management to TenantManager pattern
- Replace TenantRepository with TenantManager (ASP.NET Identity style)
- Change TenantId from long to int (auto-increment)
- Add TenantStore with CRUD operations
- Update TenantService, UserService, RoleService to use TenantManager
- Add Tenant entity with TenantStatus enum
- Update DTOs and controllers for int tenant IDs
2026-02-19 21:43:24 +08:00
movingsam
28de202556 debug 2026-02-19 21:40:22 +08:00
movingsam
f5d6e0652c refactor: align TenantRepository with CleanDDD/NetCorePal规范
- remove duplicate ITenantRepository/TenantRepository from Console
- extend Platform ITenantRepository with GetByIdAsync, GetPagedAsync, CountAsync
- update Console services to use Platform.Infrastructure.Repositories
- fix nullable warnings (UserDto, OAuthClientService)
- fix YarpGateway Directory.Build.props duplicate import
- fix DynamicProxyConfigProvider CS8618 warning
2026-02-19 19:20:06 +08:00
movingsam
4d2127637d 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
74122b2c8c feat(auth): extract Tenant to Platform domain
- Add Fengling.Platform domain and infrastructure projects
- Move Tenant aggregate from AuthService/Console to Platform.Domain
- Add TenantRepository and SeedData to Platform
- Remove duplicate Tenant/TenantInfo models from AuthService and Console
- Update controllers and services to use Platform.Domain.Tenant
- Add new migrations for PlatformDbContext

BREAKING CHANGE: Tenant entity now uses strongly-typed ID (TenantId)
2026-02-18 23:02:03 +08:00
sam
9516e1cd93 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
f14bf019f1 chore: update gitignore to allow Vben packages directory 2026-02-13 21:34:52 +08:00
Sam
c8cb7c06bc feat: 添加Console API认证和OpenIddict集成
- 配置AuthService使用OpenIddict reference tokens
- 添加fengling-api客户端用于introspection验证
- 配置Console API通过OpenIddict验证reference tokens
- 实现Tenant/Users/Roles/OAuthClients CRUD API
- 添加GatewayController服务注册API
- 重构Repository和Service层支持多租户

BREAKING CHANGE: API认证现在使用OpenIddict reference tokens
2026-02-08 19:01:25 +08:00
Sam
61c3a27192 feat: 添加OAuth2认证配置和实现
添加OAuth2认证相关配置文件和服务实现,包括环境变量配置、PKCE流程支持、token管理等功能。主要变更:
- 新增OAuth2配置文件
- 实现OAuth2服务层
- 更新请求拦截器支持token自动刷新
- 修改认证API和store以支持OAuth2流程
2026-02-07 17:47:11 +08:00
Sam
cf1bf1d600 fix: configure TenantInfo as owned entity and use AsNoTracking
- Add AsNoTracking to tenant query to avoid tracking conflicts
- Configure TenantInfo as owned entity in ApplicationUser
- Map TenantInfo properties to separate columns in AspNetUsers table
2026-02-06 00:55:58 +08:00
Sam
e1ba3a90c3 feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
Sam
4d7abd6fdb feat(console): add RolesController with all CRUD endpoints 2026-02-05 14:21:21 +08:00
Sam
88c4bfa9cd feat(console): add TenantsController with all CRUD endpoints 2026-02-05 14:20:46 +08:00
Sam
5d163b3395 feat(console): add UsersController with all CRUD endpoints 2026-02-05 14:20:11 +08:00
Sam
a4da3b26fa feat(console): register all services and HttpContextAccessor 2026-02-05 14:19:44 +08:00
Sam
decc88441a feat(console): add RoleService with audit logging 2026-02-05 14:19:10 +08:00
Sam
cd2ec42ea3 feat(console): add TenantService with audit logging 2026-02-05 14:17:52 +08:00
Sam
993152aa56 feat(console): add UserService with audit logging 2026-02-05 14:16:40 +08:00
Sam
c87278fb18 feat(console): add Identity configuration and register repositories 2026-02-05 14:15:47 +08:00
Sam
134647d6c9 feat(console): add RoleRepository 2026-02-05 14:15:20 +08:00
Sam
75b161bc60 feat(console): add TenantRepository 2026-02-05 14:15:02 +08:00
Sam
a76f37fbc9 feat(console): add UserRepository 2026-02-05 14:14:43 +08:00
Sam
abb5cd7c41 feat(console): add role DTOs 2026-02-05 14:14:19 +08:00
Sam
8a20a3368e feat(console): add tenant DTOs 2026-02-05 14:13:47 +08:00
Sam
50c443fdfa feat(console): add user DTOs 2026-02-05 14:13:17 +08:00
Sam
b8a76dfd93 feat(console): add ASP.NET Core Identity dependency 2026-02-05 14:06:23 +08:00
Sam
29357dbf10 chore: add .worktrees to gitignore 2026-02-05 13:47:13 +08:00
Sam
7da91991ff first commit 2026-02-03 15:30:12 +08:00
Sam
51ab712a5d docs(console): add task 12 documentation for frontend project creation 2026-02-02 10:34:12 +08:00
Sam
4c3337a408 feat(console): create Vue 3 frontend project with OAuth2 and basic modules 2026-02-02 10:33:23 +08:00
Sam
153d33f7af chore: add .gitignore and remove tracked binary files (bin, obj, dll, pdb) 2026-02-02 10:20:22 +08:00
Sam
e6827ede0b docs(console): update architecture to frontend-only, remove backend project 2026-02-02 10:13:35 +08:00
Sam
bbecd7348a chore(console): remove incorrect backend project, will create frontend project instead 2026-02-02 10:12:22 +08:00
Sam
d4d87eccde feat(console): create console backend project structure 2026-02-02 10:00:30 +08:00
Sam
ee48b93fae feat(auth): pre-register Fengling.Console as OAuth client 2026-02-02 09:59:32 +08:00
Sam
5cdcba7e57 feat(auth): add OAuth client management API 2026-02-02 09:58:55 +08:00
Sam
d3810f5d43 docs(auth): add API documentation 2026-02-02 09:55:23 +08:00