- Add validateCreateJobRequest() checking required fields (companyId, title ≥5 chars, description ≥20 chars) and enum values (employmentType, workMode, status) before hitting the DB - Catch *pq.Error in handler: check_violation (23514) and foreign_key_violation (23503) now return 400; unique_violation (23505) returns 409; other DB errors return 500 without leaking raw pq messages - Fix test fixtures: description and companyId now meet validation requirements Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cmd | ||
| docs | ||
| internal | ||
| migrations | ||
| scripts | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| BACKEND.md | ||
| Dockerfile | ||
| generate_keys.go | ||
| go.mod | ||
| go.sum | ||
| package-lock.json | ||
| README.md | ||
| start_dev.sh | ||
Backend API - GoHorse Jobs
This directory contains the main Golang backend service for GoHorse Jobs. It serves the REST API for the core platform.
🚨 AI Rules Warning 🚨
Before making ANY changes to infrastructure deployment manifests or Kubernetes files, please refer to the project-wide AI Rules located at .agent/rules.md.
Do NOT touch k3s or k8s files. Do not alter raw RSA/base64 authentication keys.