@@ -144,85 +144,83 @@ CΓ³ gΓ¬ ΔαΊ·c biα»t khiαΊΏn cho template nΓ y trα» nΓͺn khΓ‘c biα»t so vα»i
144144
145145```
146146/Domain
147- βββ /Aggregates/ # Domain aggregates (entities with business rules )
148- βββ /Common/ # Shared domain logic
147+ βββ /Aggregates/ # CΓ‘c Aggregate trong Domain (entity chα»©a quy tαΊ―c nghiα»p vα»₯ )
148+ βββ /Common/ # Logic domain dΓΉng chung
149149```
150150
151151```
152152/Application
153153 βββ /Common
154- β βββ /Auth/ # Authentication & authorization helpers (policy builders, claim extractors )
154+ β βββ /Auth/ # Tiα»n Γch xΓ‘c thα»±c & phΓ’n quyα»n (xΓ’y dα»±ng policy, trΓch xuαΊ₯t claim )
155155 β βββ /Behaviors/ # MediatR pipeline behaviors (logging, validation, transaction, caching)
156- β βββ /ErrorCodes/ # Centralized error code definitions for the whole app
157- β βββ /Errors/ # Error result & problem details mappings
158- β βββ /Interfaces/ # Application-level interfaces (services, repos, abstractions )
159- β βββ /RequestHandler/ # Parsing, validating & normalizing request
160- β βββ /Security/ # Security helpers (permission attributes, role metadata)
161- β βββ /Validators/ # Global validators used across features
156+ β βββ /ErrorCodes/ # Δα»nh nghΔ©a mΓ£ lα»i tαΊp trung cho toΓ n bα» α»©ng dα»₯ng
157+ β βββ /Errors/ # Γnh xαΊ‘ kαΊΏt quαΊ£ lα»i & problem details
158+ β βββ /Interfaces/ # Interface tαΊ§ng Application (service, repository, abstraction )
159+ β βββ /RequestHandler/ # PhΓ’n tΓch, validate & chuαΊ©n hΓ³a query parameters
160+ β βββ /Security/ # Tiα»n Γch bαΊ£o mαΊt (attribute phΓ’n quyα»n, metadata role )
161+ β βββ /Validators/ # Lα»p abstract FluentValidation dΓΉng chung
162162 β
163- βββ /Features # Vertical slices styles (CQRS + MediatR)
164- β βββ /AuditLogs/ # Commands & queries to manage audit logs
165- β βββ /Permissions/ # Permission management
166- β βββ /QueueLogs/ # Query logs for background queue jobs
167- β βββ /Regions/ # Region-based CQRS handlers
168- β βββ /Roles/ # Role CRUD + role-permission commands
169- β βββ /Users/ # User CRUD + account actions
163+ βββ /Features # Phong cΓ‘ch Vertical Slice (CQRS + MediatR)
164+ β βββ /AuditLogs/ # Command & Query quαΊ£n lΓ½ audit log
165+ β βββ /Permissions/ # QuαΊ£n lΓ½ permission
166+ β βββ /QueueLogs/ # Log truy vαΊ₯n cho background queue jobs
167+ β βββ /Regions/ # CQRS xα» lΓ½ theo khu vα»±c (region)
168+ β βββ /Roles/ # CRUD role + command role-permission
169+ β βββ /Users/ # CRUD user + cΓ‘c thao tΓ‘c tΓ i khoαΊ£n
170170 β
171- βββ /SharedFeatures # Common CQRS components reused across multiple features.
172- β βββ /Mapping/ # Shared mapping used by multiple features.
173- β βββ /Projections/ # Common read-side DTO builders or lightweight view models.
174- β βββ /Requests/ # Shared command/query models (e.g., Upsert commands used by multiple operations).
175- β βββ /Validations/ # Reusable FluentValidation rules shared across commands/queries.
171+ βββ /SharedFeatures # CΓ‘c thΓ nh phαΊ§n CQRS dΓΉng chung cho nhiα»u feature
172+ β βββ /Mapping/ # Mapping dΓΉng chung giα»―a nhiα»u feature
173+ β βββ /Projections/ # DTO phΓa read-side hoαΊ·c view model nhαΊΉ dΓΉng chung
174+ β βββ /Requests/ # Command/Query dΓΉng chung (vΓ dα»₯: Upsert dΓΉng cho nhiα»u nghiα»p vα»₯)
175+ β βββ /Validations/ # Rule FluentValidation tΓ‘i sα» dα»₯ng giα»―a nhiα»u command/query
176176 β
177- βββ Application.csproj # Application project definition
178- βββ DependencyInjection.cs # Registers all Application services into DI container
179-
177+ βββ Application.csproj # File project Application
178+ βββ DependencyInjection.cs # ΔΔng kΓ½ toΓ n bα» service tαΊ§ng Application vΓ o DI container
180179```
181180
182181```
183182/Infrastructure
184- βββ /Constants # Static constants for Infrastructure layer
183+ βββ /Constants # HαΊ±ng sα» tΔ©nh cho tαΊ§ng Infrastructure
185184 β
186- βββ /Data # EF Core + persistence layer
187- β βββ /Configurations/ # Fluent API entity configurations
188- β βββ /Converters/ # Type converters (e.g., Ulid β string)
189- β βββ /Interceptors/ # EF Core interceptors (audit, logging)
190- β βββ /Migrations/ # EF Core migration files
191- β βββ /Repositories/ # Repository implementations
192- β βββ /Seeders/ # Seed data for database initialization
193- β βββ /Settings/ # DbContext, UnitOfWork, factories, settings
185+ βββ /Data # EF Core + tαΊ§ng persistence
186+ β βββ /Configurations/ # CαΊ₯u hΓ¬nh entity bαΊ±ng Fluent API
187+ β βββ /Converters/ # Bα» chuyα»n Δα»i kiα»u (vd: Ulid β string)
188+ β βββ /Interceptors/ # EF Core interceptor (audit, logging)
189+ β βββ /Migrations/ # File migration cα»§a EF Core
190+ β βββ /Repositories/ # Triα»n khai repository
191+ β βββ /Seeders/ # Seed dα»― liα»u khα»i tαΊ‘o database
192+ β βββ /Settings/ # IOptions cho database
194193 β
195- βββ /Services # Infrastructure service implementations
194+ βββ /Services # Triα»n khai service tαΊ§ng Infrastructure
196195 β
197- βββ DependencyInjection.cs # Registers Infrastructure services into DI
198- βββ Infrastructure.csproj # Project file
199-
196+ βββ DependencyInjection.cs # ΔΔng kΓ½ service Infrastructure vΓ o DI
197+ βββ Infrastructure.csproj # File project Infrastructure
200198```
201199
202200```
203201/Api
204- βββ /common # Shared helpers/utilities for the API layer
202+ βββ /common # Helper / tiα»n Γch dΓΉng chung cho tαΊ§ng API
205203 β
206- βββ /Converters # converters for project
204+ βββ /Converters # CΓ‘c converter cho project
207205 β
208- βββ /Endpoints # HTTP endpoint definitions (minimal APIs or controllers )
206+ βββ /Endpoints # Δα»nh nghΔ©a HTTP endpoint (Minimal API )
209207 β
210- βββ /Extensions # API extension methods (Swagger, CORS, routing, etc .)
208+ βββ /Extensions # Extension methods cho API (Swagger, CORS, routing, .. .)
211209 β
212- βββ /Middlewares # Custom middlewares (exception handling , logging, etc .)
210+ βββ /Middlewares # Middleware custom (xα» lΓ½ exception , logging, .. .)
213211 β
214- βββ /Resources # Localization resources for message translation
215- β βββ /Messages/ # Localized message files (e.g., en.json, vi.json)
216- β βββ /Permissions/ # Permission translation files
212+ βββ /Resources # TΓ i nguyΓͺn localization cho message
213+ β βββ /Messages/ # File message Δa ngΓ΄n ngα»― (vd: en.json, vi.json)
214+ β βββ /Permissions/ # File dα»ch permission
217215 β
218- βββ /Services # API-layer services (if any API-specific logic is needed )
216+ βββ /Services # Service riΓͺng cho tαΊ§ng API (nαΊΏu cΓ³ logic ΔαΊ·c thΓΉ API )
219217 β
220- βββ /Settings # Settings for IOption
218+ βββ /Settings # Setting cho IOptions
221219 β
222- βββ /wwwroot/Templates # Static template files (email templates, exports, etc .)
220+ βββ /wwwroot/Templates # File template tΔ©nh (email, export, .. .)
223221 β
224- βββ Api.csproj # Project file
225- βββ Program.cs # Application startup
222+ βββ Api.csproj # File project API
223+ βββ Program.cs # Δiα»m khα»i Δα»ng α»©ng dα»₯ng
226224```
227225
228226```
@@ -319,7 +317,6 @@ Chα»nh lαΊ‘i setting α» your appsettings.json
319317 "AccessKey" : " " ,
320318 "SecretKey" : " " ,
321319 "BucketName" : " the-template-project" ,
322- "PublicUrl" : " http://localhost:9000" ,
323320 "PreSignedUrlExpirationInMinutes" : 1440 ,
324321 "Protocol" : 1
325322},
0 commit comments