Commit Graph

28 Commits

Author SHA1 Message Date
keven1024
907f77aa66 refactor(backend): update file hash calculation from MD5 to SHA1 and rename related error handling 2026-05-24 11:15:42 +08:00
keven1024
499b931c04 refactor(backend): streamline Redis operations in file and share handling by utilizing handler functions for improved data management 2026-05-24 11:15:42 +08:00
keven1024
17fa39b830 refactor(backend): update SetRedisFileInfo to use handler functions for better data manipulation and simplify file merging process with io.CopyBuffer 2026-05-24 11:15:42 +08:00
keven1024
560387d8f1 refactor: streamline Redis stat updates by using a handler function to modify stat data directly 2026-04-04 11:01:50 +08:00
keven1024
7663e8eb0a fix(backend): improve error handling in controllers and services by checking errors from Redis operations and adding error comments for deferred function calls 2026-02-27 15:42:02 +08:00
keven1024
fe6c832275 refactor(backend): replace error handling with predefined error variables for consistency across download and upload tasks 2026-02-27 15:10:59 +08:00
keven1024
e5b5def6f0 refactor: migrate file utility functions to services package and update references in controllers; remove deprecated utils file 2026-02-27 12:18:18 +08:00
keven1024
b98853ebe1 chore(deps): upgrade echo framework from v4 to v5 and remove custom context middleware 2026-02-26 16:09:47 +08:00
keven1024
e250202deb refactor(backend): enhance file upload handling by improving error management and restructuring CreateFileSlice and MergeFileSlices functions for better clarity 2025-12-21 17:21:19 +08:00
keven1024
e8653a8e8b refactor(backend): update UploadFileSlice and CreateFileSlice functions to include upload path handling for improved file management 2025-12-21 16:19:57 +08:00
keven1024
18a74b6545 refactor(backend): restructure main application by separating middleware and route definitions into dedicated files, update environment variable handling, and improve code organization for better maintainability 2025-12-14 16:25:00 +08:00
keven1024
313ce4455f chore: update Go modules to version 1.25.5, restructure models into pkg/models, and remove unused model files for improved organization and dependency management 2025-12-14 16:12:17 +08:00
keven
b4f577e758 feat(backend): implement statistics tracking for file uploads, shares, and downloads 2025-10-19 16:34:17 +08:00
keven
b80cb0c2d8 refactor(backend,worker): update environment variable keys for consistency and improve configuration handling across backend and worker modules 2025-10-18 23:54:11 +08:00
keven1024
0a9d414751 refactor(backend): optimize file upload chunk size calculation and improve MD5 hash verification process 2025-09-22 14:15:10 +08:00
keven1024
f4740f4373 fix: improve max storage size handling in CreateUploadTask by using GetFileSize for better error management 2025-06-22 00:48:53 +08:00
keven
d77fc85fd3 feat: 在文件上传任务中添加存储空间检查,确保不超过最大本地存储限制 2025-06-12 23:50:24 +08:00
keven1024
026957370c feat(backend): add upload task expiration and enqueue file removal task with Redis integration 2025-05-25 23:44:42 +08:00
keven1024
4b4773e336 refactor(backend): move GetUploadDirPath function to utils for better modularity 2025-05-24 21:39:04 +08:00
keven1024
0a9b4dc20c fix(backend): update error messages in file upload functions for clearer parameter validation feedback 2025-05-02 19:45:54 +08:00
keven1024
7ea196f03e feat(backend): add chunk size handling in file upload process and enhance file info model 2025-05-01 13:53:30 +08:00
keven1024
b315a03c05 feat(backend): enhance FinishUploadTask response to include file metadata such as size, mime type, hash, and type 2025-04-30 15:10:50 +08:00
keven1024
f2c115b09c refactor(backend): update file info handling to use pointers and enhance upload task validation with expiration checks 2025-04-30 15:08:26 +08:00
keven1024
9f863819d8 refactor(backend): enhance file upload logic by merging file slices and improving Redis file info handling 2025-04-30 12:29:06 +08:00
keven1024
94e634619f refactor(backend): remove redundant MD5 hash calculation from UploadFileSlice and streamline file upload logic 2025-04-28 20:46:53 +08:00
keven1024
54a0179ef1 refactor(backend): reorganize file handling logic by introducing services package for file operations and updating controller references 2025-04-28 20:28:23 +08:00
keven1024
ea998b7d34 refactor(backend): update file info retrieval to use models package and improve file slice creation logic 2025-04-28 20:17:53 +08:00
keven1024
e32388f70a feat(backend): add file upload controller with task creation, slice upload, and completion handling 2025-04-28 20:13:35 +08:00