add llm limits

This commit is contained in:
2025-12-17 22:51:16 +08:00
parent 971c02fa07
commit 0a8709d515

View File

@@ -9,10 +9,14 @@ This file condenses `backend/docs/dev/http_api.md` + `backend/docs/dev/model.md`
- DO follow existing module layout under `backend/app/http/<module>/`. - DO follow existing module layout under `backend/app/http/<module>/`.
- DO keep controller methods thin: parse/bind → call `services.*` → return result/error. - DO keep controller methods thin: parse/bind → call `services.*` → return result/error.
- DO regenerate code after changes (routes/docs/models). - DO regenerate code after changes (routes/docs/models).
- DO add `// @provider` above every controller/service `struct` declaration.
- DO keep HTTP middlewares in `backend/app/middlewares/` only.
- DO NOT manually edit generated files: - DO NOT manually edit generated files:
- `backend/app/http/**/routes.gen.go` - `backend/app/http/**/routes.gen.go`
- `backend/app/http/**/provider.gen.go` - `backend/app/http/**/provider.gen.go`
- `backend/docs/docs.go` - `backend/docs/docs.go`
- DO NOT manually write provider declarations (only `atomctl gen provider`).
- DO NOT manually write route declarations (only `atomctl gen route`).
- DO keep Swagger annotations consistent with actual Fiber route paths (including `:param`). - DO keep Swagger annotations consistent with actual Fiber route paths (including `:param`).
--- ---
@@ -24,6 +28,7 @@ This file condenses `backend/docs/dev/http_api.md` + `backend/docs/dev/model.md`
- Controllers: `backend/app/http/<module>/*.go` - Controllers: `backend/app/http/<module>/*.go`
- Example module: `backend/app/http/super/tenant.go`, `backend/app/http/super/user.go` - Example module: `backend/app/http/super/tenant.go`, `backend/app/http/super/user.go`
- DTOs: `backend/app/http/<module>/dto/*` - DTOs: `backend/app/http/<module>/dto/*`
- HTTP middlewares: `backend/app/middlewares/*`
- Routes (generated): `backend/app/http/<module>/routes.gen.go` - Routes (generated): `backend/app/http/<module>/routes.gen.go`
- Swagger output (generated): `backend/docs/swagger.yaml`, `backend/docs/swagger.json`, `backend/docs/docs.go` - Swagger output (generated): `backend/docs/swagger.yaml`, `backend/docs/swagger.json`, `backend/docs/docs.go`