24 Commits

Author SHA1 Message Date
af043befc2 🎨 实现 redis model 的基类,并能够很好的“组合” 2024-11-18 19:15:58 +08:00
18ef3f2bce 🎨 class RedisClient in single file 2024-11-18 18:35:10 +08:00
6f97245961 finish #2 prefer mode with redis 2024-11-18 17:10:11 +08:00
4d2f304ab7 refactor(web): 重构动物列表查询逻辑
- 优化了 prefer 模式下的查询流程,减少了冗余代码
- 重构了 getPreferCatsId 函数,增加了 skip 参数支持分页查询
- 修改了 Encounter 模型中的 EncounteredCats 方法,支持 DISTINCT 查询和分页
- 提高了查询效率,减少了数据库访问次数
2024-11-18 13:06:51 +08:00
0c2903e4f8 🐛 Create Animal 参数绑定错误修正 2024-11-17 16:46:15 +08:00
656bcf7239 finish half animal ES 2024-11-13 19:43:26 +08:00
44c9e825c9 fit #2 2024-11-12 12:13:50 +08:00
eeeaa2a86f feat(animal): 优化动物列表查询并添加用户友好错误信息
- 在动物模型中添加排序条件,按更新时间降序排列
- 在错误代码中添加针对用户的错误信息
- 在动物控制器中使用用户友好的错误信息
2024-11-09 05:51:43 +08:00
c018a63cd3 🎏finish name selece 2024-11-08 18:57:08 +08:00
1b5ef757b7 fit redisgo to lrange 2024-11-08 16:57:47 +08:00
473eafc069 🎏FInish prefer List 2024-11-07 21:28:41 +08:00
33ef39c849 prepare for animal mode 2024-11-07 00:11:37 +08:00
9d1f5f8e62 add Department Field to Animal 2024-11-06 18:50:39 +08:00
044e749060 nothing 2024-10-31 20:43:29 +08:00
cee2ebc1e1 add animal ret 2024-10-31 20:36:06 +08:00
121c7281fa finish Add animal API #1 2024-10-30 17:21:09 +08:00
7b8a545f59 🐛 bad word 2024-10-25 05:03:27 +08:00
5bd3e4d6e7 test Animal Create Object 2024-10-24 15:26:09 +08:00
babd68def0 animal like & list #1 2024-10-23 12:51:41 +08:00
d26b0859d6 test file Upload 2024-10-18 20:28:34 +08:00
32cbe38436 change Create to store 2024-10-17 22:43:20 +08:00
89d6ed41e9 change animal Model, wait next change 2024-10-16 11:33:32 +08:00
9b24a1f645 🎨 better model code 2024-10-14 19:27:46 +08:00
eaf4bb4ad8 🎉 2024-10-14 13:49:16 +08:00