Commit Graph

61 Commits

Author SHA1 Message Date
Leon
bd3d26ddfe fix: 提前检测video是否为nil 2025-12-24 20:48:36 +08:00
Leon
a7c6525f57 feat: 为用到缓存的部分套上了防击穿锁 2025-12-24 14:09:10 +08:00
Leon
0d34f2abee feat: 添加了防击穿锁 2025-12-24 14:08:28 +08:00
Leon
94140c3c13 feat:为ListByFollowing方法添加上redis缓存 2025-12-24 13:04:38 +08:00
Leon
c952c5d96c feat: jwt优先使用redis缓存 2025-12-23 20:48:41 +08:00
Leon
5d88289cb0 feat: 为login和logout等优先使用redis缓存 2025-12-23 20:48:23 +08:00
Leon
f524123ea6 feat:为video的getdetail添加redis缓存 2025-12-23 19:04:24 +08:00
Leon
f884167db8 refactor: 优化islLked的获取方式并将部分相同代码提取为一个函数 2025-12-23 18:45:39 +08:00
Leon
a6b649e986 fix: 修复了自己关注自己的bug 2025-12-23 02:26:53 +08:00
Leon
a98e9d28f0 feat: 添加了redis缓存 2025-12-23 02:26:29 +08:00
Leon
a632768ef8 feat:加入了mysql的一些标签 2025-12-23 02:23:42 +08:00
Leon
326782240f refactor:修改了过去likecount的方式 2025-12-23 02:22:06 +08:00
Leon
88d2cabaac refactor:端口改为int 2025-12-23 02:21:33 +08:00
Leon
b0a7c85a8d refactor:优化了like和unlike功能 2025-12-23 02:20:08 +08:00
Leon
8ee2025951 feat: 添加了根据关注的feed流 2025-12-19 19:20:52 +08:00
Leon
d2f40acf4d feat: 添加了social的关注功能 2025-12-19 19:03:42 +08:00
Leon
2786530c54 feat: 加入了一些边界检查 2025-12-16 18:52:09 +08:00
Leon
b9fe48a328 feat: 添加了评论功能并注册 2025-12-16 18:51:50 +08:00
Leon
ef47d5e2de feat: 添加了删除视频功能并添加了一些边界检查 2025-12-16 18:51:17 +08:00
Leon
7883a7427d feat: 添加了SoftJWTAuth 2025-12-16 18:50:10 +08:00
Leon
882204ca93 fix:使isLiked可以正确获取,并修复了时间会负值的bug 2025-12-16 18:49:26 +08:00
Leon
68b4550c56 feat:secret从环境中获取 2025-12-16 18:47:22 +08:00
Leon
7fb8c61091 fix:rename后重新生成token 2025-12-16 18:46:51 +08:00
Leon
52694a1475 refactor:请求结构体放到entity 2025-12-16 18:46:24 +08:00
Leon
2c9bf4cc60 chore:一些测试文件的小修改 2025-12-16 14:35:36 +08:00
Leon
a93521f8ab fix:feed流返回数据中修复isLiked 2025-12-16 14:35:04 +08:00
Leon
0915e13e8f feat:添加按照点赞数的feed流 2025-12-16 14:02:17 +08:00
Leon
ead7153cc4 fix:适配其他改动 2025-12-15 17:34:55 +08:00
Leon
ab488d7b74 feat:添加响应结构体方便前端渲染 2025-12-15 17:34:34 +08:00
Leon
9713a23e7b refactor:将request结构体写到entity,并为video添加username字段 2025-12-15 17:34:01 +08:00
Leon
b53593b920 refactor:将request结构体写到entity 2025-12-15 17:32:56 +08:00
Leon
8e51de9410 feat(video): add likescount and updatelikescount 2025-12-09 21:11:29 +08:00
Leon
09e6398c6e Adjust ChangePassword response wording 2025-12-09 16:21:57 +08:00
Leon
e3ae8185be fix(account): remove token when change password 2025-12-09 16:20:15 +08:00
Leon
6804b71fe9 refactor(account): pass request context into services 2025-12-09 16:05:10 +08:00
Leon
4bedf58a03 refactor(account): remove unused structs and logout by token 2025-12-09 15:58:07 +08:00
Leon
f122a6170d feat(account): use token instead of id for rename 2025-12-09 15:47:55 +08:00
Leon
6c0b8c7d7a refactor(feed): simplify ListLatest handler context usage 2025-12-09 15:35:47 +08:00
Leon
eeafe9d32a feat(video): add like/unlike/isliked/getlikescount APIs for videos 2025-12-09 15:30:16 +08:00
Leon
72f35f7a7a feat(middleware): add GetAccountID by jwtToken 2025-12-09 15:27:33 +08:00
Leon
5c79e99b70 refactor(video): clean handler/service/repo boundaries 2025-12-09 13:53:36 +08:00
Leon
172fd0a35d refactor(video): prefix core files with video_ 2025-12-09 13:29:00 +08:00
Leon
6a3480698a move handler from http to module 2025-12-08 20:35:56 +08:00
Leon
d29a3a5232 feat(feed): add ListLatest 2025-12-07 22:46:45 +08:00
Leon
3b80a7c5da fix: delete ListLatest(func) 2025-12-07 21:22:54 +08:00
Leon
8dcc13957b fix: change account_id to accountID to match PublishVideo(func) 2025-12-07 17:39:03 +08:00
Leon
466817d6ad fix: ensure jwt token matches the currently stored token 2025-12-07 17:36:44 +08:00
Leon
62adc9211b fix: change accountID to account_id to match PublishVideo(func) 2025-12-07 16:49:11 +08:00
Leon
77962456d6 feat: AutoMigrate table about video module 2025-12-07 16:46:55 +08:00
Leon
0de0a04f53 feat: regisiter router about video module 2025-12-07 16:46:06 +08:00