4 Commits
Author SHA1 Message Date
Timi 164dc4aef1 feat: remove permission create and delete
- remove permission create, batch create and delete endpoints and permission codes
- soft delete PERMISSION:CREATE and PERMISSION:DELETE via V95
- fail startup on builtin permission drift outside production
2026-11-26 11:39:14 +08:00
Timi 02193b2ad1 feat(file): restrict preview to images and videos
- generate size-aware thumbnails (32-512px) with single-flight and atomic writes
- add optional v parameter for immutable browser caching
- serve PNG for PNG/GIF sources and JPEG otherwise
- drop PDF, text and WebP from preview support
2026-11-25 20:05:28 +08:00
Timi dd82259221 docs(openapi): add AI index and annotate setting endpoints
- add openapi-index.py to generate a compact Markdown index from OpenAPI JSON/YAML
- generate docs/openapi.index.md from the export scripts by default
- annotate SettingController with tags, operations, parameters and public security
- document the AI index workflow in api-integration.md
2026-11-25 13:18:08 +08:00
Timi aefc0ad205 feat(openapi): integrate springdoc and API integration guide
- add springdoc-openapi and expose /v3/api-docs, /v3/api-docs.yaml and Swagger UI
- keep API docs responses unwrapped by replacing the global return handler
- add Chinese @Tag/@Operation/@Parameter docs for file and async task controllers
- add docs/api-integration.md and local export scripts for AI agent consumption
- ignore local OpenAPI snapshots and force LF for shell scripts
2026-11-25 01:23:30 +08:00