update llm.txt

This commit is contained in:
2025-12-18 17:39:14 +08:00
parent de574bbd9d
commit eedb940799

View File

@@ -215,6 +215,10 @@ Generator will convert snake_case columns to Go struct field names (e.g. `class_
## 3) Service layer injection (when adding services)
- Services are in `backend/app/services`.
- Data access boundary:
- MUST: only the `services` layer may query the database via `models.*Query`, `models.Q.*`, `gorm.DB`, or raw SQL.
- DO NOT: perform any direct database query from HTTP modules (`backend/app/http/**`) including controllers, DTO binders, or middlewares.
- HTTP modules must call `services.*` for all read/write operations.
- After creating/updating a service provider, regenerate wiring:
- `atomctl gen service`
- `atomctl gen provider`