Commit Graph

33 Commits

Author SHA1 Message Date
keven1024
958ca799da refactor(http): simplify HTTPBaseResponse options by removing interface and using functional options directly 2026-05-24 11:15:44 +08:00
keven1024
52cc89a73d refactor: implement session management using Gorilla sessions and streamline session retrieval in middleware 2026-04-04 13:47:12 +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
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
31c0736562 feat(backend): add password hashing error handling and implement HTTP utility tests 2025-12-27 11:04:21 +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
keven
84c104be90 feat(backend, worker): add config watching and simplify error handling in InitEnv function 2025-10-19 15:23:42 +08:00
keven
e6cc1b0229 feat(backend): add About and Config controllers for dynamic environment variable retrieval 2025-10-19 10:19:28 +08:00
keven
1ed154913d refactor(backend,worker): update environment variable key for upload path to enhance consistency across modules 2025-10-19 00:10:09 +08:00
keven
12efc10e0e refactor(backend): standardize environment variable names for download and password handling, enhancing consistency and clarity 2025-10-19 00:05:56 +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
4d0a6f0a49 test(backend): add unit tests for HTTP result handlers and password hashing functionality 2025-08-14 14:40:03 +08:00
keven1024
464dba2546 feat: add password hashing utility using argon2 for secure password storage 2025-07-07 12:24:59 +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
52da9960b8 chore(backend): replace go-units with go-humanize for improved file size handling 2025-06-01 21:48:36 +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
fd5a768041 feat(backend): add pickup code generation and retrieval functionality for file sharing 2025-05-27 20:38:05 +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
1f7c6a2b4a refactor(backend): simplify HTTPBaseResponse structure by removing pointer types for code, message, and data 2025-05-20 19:51:36 +08:00
keven1024
1b2f6a49e2 feat(backend): add configuration and sharing endpoints, implement environment variable loading 2025-05-11 11:08:54 +08:00
keven1024
1dc349ef31 feat(backend): implement HTTP response utility functions for standardized error and success handling 2025-04-30 13:55:04 +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
cd81cead2a feat(backend): add GetFileMd5 function for calculating MD5 hash of files to enhance file integrity verification 2025-04-28 20:40:59 +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
7420b3e2a7 chore(backend): update go.mod and go.sum to upgrade dependencies and add new indirect dependencies for improved functionality 2025-04-26 22:39:11 +08:00