做一次小小的备份,等会又删掉了
This commit is contained in:
@@ -53,6 +53,7 @@ description: "Task list template for feature implementation"
|
||||
- [ ] T003 [P] Configure linting (golangci-lint) and formatting tools (gofmt/goimports)
|
||||
- [ ] T004 [P] Setup unified error codes in pkg/errors/
|
||||
- [ ] T005 [P] Setup unified API response in pkg/response/
|
||||
- [ ] T006 [P] Setup constants management in pkg/constants/ (business constants and Redis key functions)
|
||||
|
||||
---
|
||||
|
||||
@@ -64,18 +65,18 @@ description: "Task list template for feature implementation"
|
||||
|
||||
Foundational tasks for 君鸿卡管系统 tech stack:
|
||||
|
||||
- [ ] T006 Setup PostgreSQL database connection via GORM with connection pool (MaxOpenConns=25, MaxIdleConns=10)
|
||||
- [ ] T007 Setup Redis connection with connection pool (PoolSize=10, MinIdleConns=5)
|
||||
- [ ] T008 [P] Setup database migrations framework (golang-migrate or GORM AutoMigrate)
|
||||
- [ ] T009 [P] Implement Fiber routing structure in internal/router/
|
||||
- [ ] T010 [P] Implement Fiber middleware (authentication, logging, recovery, validation) in internal/handler/middleware/
|
||||
- [ ] T011 [P] Setup Zap logger with Lumberjack rotation in pkg/logger/
|
||||
- [ ] T012 [P] Setup Viper configuration management in pkg/config/
|
||||
- [ ] T013 [P] Setup Asynq task queue client and server in pkg/queue/
|
||||
- [ ] T014 [P] Setup Validator integration in pkg/validator/
|
||||
- [ ] T015 Create base Store structure with transaction support in internal/store/
|
||||
- [ ] T016 Create base Service structure with dependency injection in internal/service/
|
||||
- [ ] T017 Setup sonic JSON as default serializer for Fiber
|
||||
- [ ] T007 Setup PostgreSQL database connection via GORM with connection pool (MaxOpenConns=25, MaxIdleConns=10)
|
||||
- [ ] T008 Setup Redis connection with connection pool (PoolSize=10, MinIdleConns=5)
|
||||
- [ ] T009 [P] Setup database migrations framework (golang-migrate or GORM AutoMigrate)
|
||||
- [ ] T010 [P] Implement Fiber routing structure in internal/router/
|
||||
- [ ] T011 [P] Implement Fiber middleware (authentication, logging, recovery, validation) in internal/handler/middleware/
|
||||
- [ ] T012 [P] Setup Zap logger with Lumberjack rotation in pkg/logger/
|
||||
- [ ] T013 [P] Setup Viper configuration management in pkg/config/
|
||||
- [ ] T014 [P] Setup Asynq task queue client and server in pkg/queue/
|
||||
- [ ] T015 [P] Setup Validator integration in pkg/validator/
|
||||
- [ ] T016 Create base Store structure with transaction support in internal/store/
|
||||
- [ ] T017 Create base Service structure with dependency injection in internal/service/
|
||||
- [ ] T018 Setup sonic JSON as default serializer for Fiber
|
||||
|
||||
**Checkpoint**: Foundation ready - user story implementation can now begin in parallel
|
||||
|
||||
@@ -179,6 +180,11 @@ Foundational tasks for 君鸿卡管系统 tech stack:
|
||||
- [ ] TXXX Quality Gate: Check no TODO/FIXME remains (or documented in issues)
|
||||
- [ ] TXXX Quality Gate: Verify database migrations work correctly
|
||||
- [ ] TXXX Quality Gate: Verify API documentation updated (if API changes)
|
||||
- [ ] TXXX Quality Gate: Verify no hardcoded constants or Redis keys (all use pkg/constants/)
|
||||
- [ ] TXXX Quality Gate: Verify no Java-style anti-patterns (no getter/setter, no I-prefix, no Impl-suffix)
|
||||
- [ ] TXXX Quality Gate: Verify Go naming conventions (UserID not userId, HTTPServer not HttpServer)
|
||||
- [ ] TXXX Quality Gate: Verify error handling is explicit (no panic/recover abuse)
|
||||
- [ ] TXXX Quality Gate: Verify uses goroutines/channels (not thread pool patterns)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user