3d47227fbd
Remove embedded frontend and workflow editor assets, add standalone API deployment configuration, and retain the current backend service updates.
858 B
858 B
AGENTS.md
This repository contains the Agent Desk backend only.
- Stack: Go + Gin + GORM +
github.com/mlogclub/simple - Database compatibility: SQLite and MySQL must remain supported; PostgreSQL is also supported.
- Layer direction: models -> repositories -> services -> handlers.
- Handlers must not call repositories directly or return GORM models.
- Services own business rules and transaction boundaries.
- Repositories own data access and accept
db *gorm.DBconsistently. - Use request/response DTOs and the common
httpx.WriteJSONresponse wrapper. - Use
log/slogfor logging andanyinstead ofinterface{}in new code. - Run
gofmtandgo test ./...after backend changes.
The sibling frontend project is normally ../agent-desk-web. Shared frontend enums are generated with:
make enums FRONTEND_DIR=../agent-desk-web