7 Commits
Author SHA1 Message Date
Bruno GaoandQwen-Coder 2fd1eb59ab docs: Complete production-grade documentation set
- Create SECURITY.md with vulnerability disclosure policy
- Create docs/README.md as documentation index page
- Create docs/observability.md with metrics/logs/traces/alerting/SLO specs
- Create docs/runbook.md with troubleshooting scenarios (RB-01 to RB-05)
- Create docs/security.md with security design and compliance
- Create docs/release.md with versioning and rollback strategies
- Create docs/database.md with database design and migration strategy
- Create docs/adr/0005-cache-error-handler.md for cache error handling ADR
- Update README.md with documentation index section
- Update docs/architecture.md to update B-7 rule and add trust boundary section
- Create docs/api-guide.md with API specifications
- Fix method names in OrderDao.java to match OrderMapper interface
- Add Spring Boot Actuator dependency to tmpl-infrastructure
- Fix Redis ping method in RedisHealthContributor.java
- Fix syntax errors and method names in OrderAppService.java

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 21:47:33 +08:00
Bruno GaoandQwen-Coder 95adc3b03c feat: implement batch 8 Redis caching and distributed locks
- Add BaseAuditPO with audit fields (createUserId, updateUserId, createTime, updateTime, deleted, version)
- Implement MapStruct for Order ↔ OrderPO mapping with @BeanMapping(ignoreByDefault=true)
- Create RedisCacheConfig with conditional loading (app.cache.enabled=true)
- Create RedisLockService with SET NX EX distributed locking
- Add Redis profile configuration (application-redis.yml)
- Update OrderAppService with @Cacheable/@CacheEvict annotations
- Create comprehensive integration tests for cache and lock functionality
- Update docker-compose.yml to include Redis service
- Update application-dev.yml to include redis profile
- Add proper error handling and tenant isolation for cache keys
- Follow M2 v5 frozen contracts for audit trail and persistence layer

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 18:26:31 +08:00
Bruno GaoandQwen-Coder 68ff2ce8b9 feat: implement batch 7 order CRUD API with MapStruct, audit trail, and integration tests
- Add OrderAppService with tenant validation and business logic
- Create OrderController with full CRUD endpoints (create/get/list/update/delete)
- Implement DTOs (CreateOrderRequest, UpdateOrderRequest, OrderResponse, ApiResponse)
- Add OpenApiConfig for SpringDoc integration
- Create comprehensive unit tests with @WebMvcTest
- Create integration tests with Testcontainers (AbstractPostgresIT)
- Update OrderPO to extend BaseAuditPO for audit fields
- Update OrderDao to use MapStruct for entity conversion
- Update OrderRepository interface with findAllByTenantId method
- Add package-info.java files for proper documentation
- Update ErrorCode with COMMON_BAD_REQUEST for validation errors
- Update infrastructure POM with MapStruct dependencies
- Follow M2 v5 frozen contracts for audit trail and tenant isolation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 15:08:23 +08:00
Bruno GaoandQwen-Coder b7355b33d8 feat: implement batch 2 domain exceptions and tenant context
- Create ErrorCode enum with comprehensive error codes
- Create DomainException as base class for business exceptions
- Implement TenantScope value object for tenant context
- Implement TenantContext with ThreadLocal management
- Add SecurityLogMarker constants for security events
- Add comprehensive unit tests for all components
- Follow M2 architecture specifications for error handling and multi-tenancy

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 13:02:36 +08:00
Bruno GaoandQwen-Coder 1849110f3f feat: implement batch 1 skeleton for Java service template
- Create parent POM with multi-module structure
- Set up four modules: tmpl-domain, tmpl-application, tmpl-infrastructure, tmpl-api
- Configure Spring Boot 3.4.1 with Java 21
- Add application configurations for dev/staging/prod
- Set up logging with structured JSON output
- Configure database with PostgreSQL and Flyway
- Add security configuration with minimal setup
- Include docker-compose for local development
- Add all necessary build and dependency management plugins

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 12:51:20 +08:00
Bruno GaoandQwen-Coder 442dc4f237 Remove all existing code - preparing for fresh start
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 08:20:52 +08:00
Bruno GaoandQwen-Coder eefe2c5b34 M2: Add complete Java21 template with Clean Architecture implementation
- Add four-layer modular structure (domain, application, infrastructure, api)
- Implement complete CRUD example with Order entity
- Add ArchUnit architecture compliance tests
- Add Maven configuration with proper dependency management
- Add Dockerfile for containerization
- Add Kustomize deployment templates
- Add initialization script (init.sh)
- Add CI/CD workflow configuration
- Add comprehensive documentation and configuration files

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-11 23:54:21 +08:00