feat(backend): T1.2 企业档案 CRUD — 列表/详情/创建/更新/删除

- 路由:GET/POST/PUT/DELETE /api/v1/companies
- 支持分页、关键词搜索、行业/阶段筛选
- 租户隔离:只能操作本租户企业
- 测试:11 个企业 CRUD 测试,全部 passed(总计 26 tests)
This commit is contained in:
selfrelease
2026-07-18 21:57:02 +08:00
parent a95f63c24c
commit 8fe8047429
5 changed files with 426 additions and 2 deletions
+2
View File
@@ -11,6 +11,7 @@ from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse
from app.routers.auth import router as auth_router
from app.routers.companies import router as companies_router
from app.schemas.common import error
@@ -67,3 +68,4 @@ async def health_check():
app.include_router(auth_router, prefix="/api/v1")
app.include_router(companies_router, prefix="/api/v1")