向宁
|
ed47904a85
|
chore: initialize Kratos project skeleton, add proto config and Makefile
- Add Makefile with api/config/wire/build/run/test/clean targets
- Update buf.yaml with api, internal/conf, and third_party modules
- Update buf.gen.yaml with protobuf, grpc, and grpc-gateway plugins
- Add internal/conf/conf.proto (Kratos config schema: Bootstrap/Server/Data/Auth)
- Generate internal/conf/conf.pb.go via buf
- Add configs/config.yaml with HTTP/gRPC server, Postgres, S3, and auth settings
- Add third_party/google/api proto files (annotations, http)
- Remove old Gin-based layers: internal/api, internal/infrastructure/mediator,
internal/middleware, internal/common, docs
- Update .gitignore to exclude server binary and bin/
|
2026-05-25 12:37:45 +08:00 |
|
向宁
|
3a18ca0579
|
feat: add directory structure and file sharing support
- PostgreSQL metadata overlay layer on top of existing S3 storage
- 3 new tables: folders, files, share_links
- Folder CRUD: create, get with children, tree, rename, delete (cascade)
- File operations: upload to folder, move between folders
- Share links: create with optional password/expiry/download limit, public access
- S3 compensation on PG write failure
- Existing 14 endpoints untouched
|
2026-05-20 20:26:19 +08:00 |
|
向宁
|
b5df6445e5
|
refactor: commit all pending file_system changes
- Restructure handlers into file_commands/file_queries/file_handlers
- Add gRPC auth client, JWT middleware, rate limiting, request ID
- Add common utilities: logger, sanitizer, s3_errors
- Add unit tests for config, mediator, auth, request_id, sanitize
- Add proto definitions and generated code
- Remove old web UI pages
- Add .dockerignore and .env.example
|
2026-05-17 22:20:02 +08:00 |
|
root
|
d861be0d6e
|
feat: 新增文件文本内容接口,修复Markdown预览
- 新增 GET /files/content 接口,后端直接读取S3文件文本内容返回
- Repository 新增 GetFileContent 方法
- CQRS: 新增 GetFileContentQuery / GetFileContentHandler
- 前端 Markdown 预览改为调用后端接口获取内容,用 marked.js 渲染
- 解决 presigned URL CORS 和下载头导致 MD 文件无法预览的问题
- config.go: AuthAPIKey 默认值恢复为 xn001624.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-05-06 18:08:42 +08:00 |
|
root
|
71a5ea5f41
|
添加文件删除功能
|
2025-12-19 16:32:20 +08:00 |
|
root
|
8232827835
|
Initial commit
|
2025-12-18 09:34:49 +08:00 |
|