Commit Graph

39 Commits

Author SHA1 Message Date
wren 14d1199675 feat: support contract template replace and delete 2026-05-22 18:14:44 +08:00
wren 1f1bccf3b3 feat: add tenant-scoped rule and permission management 2026-05-21 22:03:08 +08:00
wren a2c2bf1969 feat: 完善模板对比持久化与附件版本处理 2026-05-20 10:55:28 +08:00
wren 7c6f134808 feat: 支持合同模板上传与地区隔离 2026-05-19 22:59:11 +08:00
wren d58755a063 feat: 支持合同模板上传与对比记录持久化 2026-05-19 20:47:54 +08:00
wren 16e8668150 feat: add contract template v3 api and legacy oss migration 2026-05-19 18:38:17 +08:00
wren afaba4dd99 feat: stabilize rag chat conversations and auto title sync 2026-05-19 15:52:05 +08:00
wren 564f2bebc8 feat: support cross-review supplement opinions export 2026-05-19 14:12:02 +08:00
wren a73826dc1d feat: integrate govdoc module into leaudit platform 2026-05-17 19:24:16 +08:00
wren 0a8f46008d fix: remove sha256 duplicate check so re-upload always creates new version in group 2026-05-13 16:41:11 +08:00
wren b532ffc3b9 feat(govdoc): 补 structure/outline API 端点 2026-05-13 15:25:13 +08:00
wren 5d777599bf feat(govdoc): 新增内部公文模块全链路(后端58+前端11文件) 2026-05-13 14:37:12 +08:00
wren 5e1a55430a fix: improve cross-review upload and OCR failure handling 2026-05-12 17:57:47 +08:00
wren 2ca44f6312 fix: harden rag streaming and queue status reporting 2026-05-11 20:39:24 +08:00
wren 8206ed7d43 feat: improve rag dataset document management 2026-05-11 19:25:50 +08:00
wren 2aa5a6d1d6 fix: tighten rag permissions and area scope 2026-05-11 18:01:09 +08:00
wren dcc0f3c30d feat: restore rag dataset management and linkage 2026-05-11 17:21:33 +08:00
wren e19f63183b feat(rbac): add lazy organization tree endpoint 2026-05-11 09:38:14 +08:00
wren 32fb2a4812 fix: stabilize rule config and cross-review backend 2026-05-11 02:03:01 +08:00
wren e8a93f25a6 feat(audit): record login events and trigger users 2026-05-09 20:07:44 +08:00
wren 4d56652879 feat(usage-stats): add usage stats backend apis 2026-05-09 20:06:59 +08:00
wren 9c86bf59e5 feat: add rag backend and review access fixes 2026-05-08 10:58:24 +08:00
wren 1c84209f38 feat: migrate cross review to v3 leaudit flow 2026-05-07 18:18:59 +08:00
wren f8eb2dc817 feat: migrate rule bindings to group-based flow 2026-05-07 17:43:20 +08:00
wren f9de903acc feat: add rule draft permission flow 2026-05-06 20:06:41 +08:00
wren c4694e11f0 feat: add document type root management 2026-05-06 14:20:28 +08:00
wren 76ba7e65ed feat: add backend rule group and permission support 2026-05-06 09:40:37 +08:00
wren 2d3a0f31de feat: complete review detail backend chain 2026-05-06 09:19:03 +08:00
wren 52c2bed4f9 feat: add document type CRUD with inline rule set binding
- GET/POST /api/document-types, GET/PUT/DELETE /api/document-types/{id}
- DocumentTypeItemVO extended with description, entryModuleId,
  isEnabled, ruleSetIds
- Create/Update DTOs accept ruleSetIds array for automatic
  leaudit_rule_type_bindings sync (full replace on update)
- Soft delete cascades to rule_type_bindings
2026-04-30 12:50:56 +08:00
wren 9e1b7a6de7 feat: add queue status endpoint for upload page
GET /api/v2/system/queue/status returns counts of documents
by processing_status (waiting/processing) from leaudit_documents,
plus processing document IDs for the frontend progress display.
2026-04-30 12:32:37 +08:00
wren 8f307aecba feat: add document-types endpoint and date/user filters to list
- GET /api/document-types: returns {id, name, code} from
  leaudit_document_types, with optional ?ids=1,2,3 filter
- GET /api/documents/list: added userId, dateFrom, dateTo
  query params for filtering by uploading user and date range
2026-04-30 12:28:55 +08:00
wren 3a58f19d6c feat: add rbac-backed settings modules 2026-04-29 22:25:06 +08:00
wren b3ad4a6f33 feat: bootstrap user rbac foundation 2026-04-29 15:23:19 +08:00
wren b45d61fa97 feat: add document versioning and list API 2026-04-29 11:48:50 +08:00
wren f3b83c9979 feat: add async worker queues and retry controls 2026-04-29 11:48:09 +08:00
wren e738398eb6 feat: wire native leaudit upload flow 2026-04-28 16:53:16 +08:00
wren c776af598a refactor: region from document, not app config
- Add region column to leaudit_documents + LeauditDocument model
- AuditServiceImpl: read region from document.region, not APP_REGION
- RuleServiceImpl: ListBindings/CreateBinding accept Region parameter
- RuleBindingCreateDTO: add region field
- RuleController: pass region from query param/DTO to service
- APP_REGION removed from binding queries; region flows from document

Region is now per-document: each document carries its region at upload
time, and rules are matched to the document's region at run time.
2026-04-28 14:19:29 +08:00
wren 1b4e0ec00a feat: add rule type binding CRUD endpoints to RuleController 2026-04-28 11:44:21 +08:00
wren 535d97a70c chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments,
FastAPI project structure (admin/common/modules),
DSL rule files, and schema migration scripts.
2026-04-27 16:48:22 +08:00