120 Commits

Author SHA1 Message Date
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
4d0a6f0a49 test(backend): add unit tests for HTTP result handlers and password hashing functionality 2025-08-14 14:40:03 +08:00
keven1024
943a5a76d2 feat(backend): enhance password handling in share and download controllers for improved security and error management 2025-07-07 15:30:37 +08:00
keven1024
464dba2546 feat: add password hashing utility using argon2 for secure password storage 2025-07-07 12:24:59 +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
keven1024
9b1b89056d chore(backend): update version and build_time in GetStat function to use environment variables for better tracking 2025-06-21 15:51:01 +08:00
keven
d77fc85fd3 feat: 在文件上传任务中添加存储空间检查,确保不超过最大本地存储限制 2025-06-12 23:50:24 +08:00
keven
c971e92905 chore: 移除不再使用的依赖项,包括 go-socket.io 和其他间接依赖,以优化项目的依赖管理 2025-06-12 22:48:06 +08:00
keven1024
304aa45b52 fix: improve error handling in InitEnv function to only panic for non-config file not found errors 2025-06-03 11:04:02 +08:00
keven1024
b013fc36fa fix: update Dockerfile to change output binary names for backend and worker services 2025-06-02 15:48:01 +08:00
keven1024
2f40b9ce78 fix: update Dockerfile to copy all source files for backend and worker services, improving build context 2025-06-02 15:43:37 +08:00
keven1024
a60b19398d fix: remove redundant line in Dockerfile for backend and worker services to streamline Go module setup 2025-06-02 15:29:41 +08:00
keven1024
99150f7015 fix: update Dockerfile to set Go module environment variables for backend and worker services 2025-06-02 15:25:42 +08:00
keven1024
07088b7f2e feat: add Dockerfiles for backend, frontend, and worker services with CI/CD pipeline configuration 2025-06-02 14:48:38 +08:00
keven1024
4b8654e6ed refactor(backend): remove state from GetCompressImage response for cleaner error handling 2025-06-02 12:21:18 +08:00
keven1024
7b2462de29 feat(backend): enhance image compression task handling with retry logic and detailed status reporting 2025-06-02 11:52:25 +08:00
keven1024
baf9fa9e6d feat(backend): enhance GetStat function to include admin URL in response for improved admin access 2025-06-02 01:18:22 +08:00
keven1024
1224d5e72e refactor(backend): update GetStat function to utilize new Redis file info retrieval and enhance file statistics charting 2025-06-01 23:32:36 +08:00
keven1024
52da9960b8 chore(backend): replace go-units with go-humanize for improved file size handling 2025-06-01 21:48:36 +08:00
keven1024
fc7f53faeb chore(backend): update dependencies in go.mod and go.sum for improved functionality and stability 2025-06-01 18:43:10 +08:00
keven1024
8d47c65498 feat(backend): implement GetStat function to retrieve file statistics and storage limits 2025-06-01 18:38:06 +08:00
keven1024
3895234d96 feat(backend): add disk usage statistics endpoint and utility for converting human-readable file sizes 2025-06-01 18:34:40 +08:00
keven1024
ed9d56c6d9 refactor(backend): simplify response structure in GetCompressImage function and add GetRedisFileKeysAll function for retrieving all file keys 2025-06-01 17:59:19 +08:00
keven1024
247eb7a4c8 feat(backend): update SetRedisPickupData to return success status for Redis storage 2025-05-28 10:37:07 +08:00
keven1024
bbee8d95bc feat(backend): improve pickup code generation with retry logic for Redis storage 2025-05-28 10:36:55 +08:00
keven1024
fd5a768041 feat(backend): add pickup code generation and retrieval functionality for file sharing 2025-05-27 20:38:05 +08:00
keven1024
ad1cbe6a39 feat(backend): add image compression endpoints for generating and retrieving compressed images 2025-05-26 21:59:07 +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
c355c8f500 feat(backend): implement Redis file share relational management for enhanced file sharing functionality 2025-05-25 23:41:37 +08:00
keven1024
eb99b52075 feat(backend): implement Redis task management functions for retrieving and storing task information 2025-05-25 15:28:02 +08:00
keven1024
09ddf205d9 feat(backend): enhance logging setup and add image compression endpoints 2025-05-25 15:16:10 +08:00
keven1024
4b4773e336 refactor(backend): move GetUploadDirPath function to utils for better modularity 2025-05-24 21:39:04 +08:00
keven1024
7b263b7b76 feat(backend): add logging middleware and image compression endpoints, enhance environment variable handling 2025-05-24 15:35:57 +08:00
keven1024
9d8de69f9f refactor(backend): improve Redis connection handling in async queue utilities by introducing RedisURI2AsynqOpt function 2025-05-23 20:29:01 +08:00
keven1024
622f04a1e0 refactor(backend): enhance HTTPBaseResponse handling by introducing option pattern for better flexibility 2025-05-23 19:49:24 +08:00
keven1024
fc337b07c2 feat(backend): add Asynq queue client and inspector utilities for background processing 2025-05-23 19:48:56 +08:00
keven1024
05832d2f16 feat(backend): add GetEnvWithDefault function to retrieve environment variables with default value support 2025-05-22 20:04:23 +08:00
keven1024
b80a013725 feat(backend): add rate limiting middleware to control upload and download request rates 2025-05-21 23:42:23 +08:00
keven1024
1f7c6a2b4a refactor(backend): simplify HTTPBaseResponse structure by removing pointer types for code, message, and data 2025-05-20 19:51:36 +08:00
keven1024
f53db5adbe fix(backend): enhance share info validation to check for minimum view count 2025-05-16 08:44:45 +08:00
keven1024
26b5bfb914 fix(backend): add validation for download count in VaildateShare to prevent insufficient downloads 2025-05-16 08:44:33 +08:00
keven1024
f48b128b65 fix(backend): adjust view count decrement logic in VaildateShare to prevent multiple decrements during concurrent downloads 2025-05-15 23:19:00 +08:00
keven1024
e2b61825f7 fix(backend): update DownloadShare to decrement view count in Redis before returning file 2025-05-15 19:56:48 +08:00
keven1024
038487b482 refactor(backend): rename file_name to name in GetShareInfo response for consistency 2025-05-15 11:13:01 +08:00
keven1024
d5d4c64bf2 refactor(backend): remove unused config route and associated controller 2025-05-14 17:53:03 +08:00
keven1024
3ed3353a7b feat(backend): add JWT-based download token generation and validation for shared files 2025-05-13 22:02:40 +08:00
keven1024
fe4a00aa09 feat(backend): implement download endpoint for shared files with password protection 2025-05-11 23:48:42 +08:00
keven1024
1b2f6a49e2 feat(backend): add configuration and sharing endpoints, implement environment variable loading 2025-05-11 11:08:54 +08:00
keven1024
79a54d3510 refactor(backend): adjust expiration time validation and improve Redis share info storage logic 2025-05-06 00:04:40 +08:00
keven1024
9b2057e6ed refactor(backend): update ShareConfig to use integer for expire_time and improve error handling in CreateShareInfo 2025-05-05 23:38:10 +08:00