Commit Graph

12 Commits

Author SHA1 Message Date
Apple\Apple
a50601295e 🚀 feat(pagination): unify backend-driven pagination & improve channel tag aggregation
SUMMARY
• Migrated Token, Task, Midjourney, Channel, Redemption tables to true server-side pagination.
• Added total / page / page_size metadata in API responses; switched all affected React tables to consume new structure.
• Implemented counting helpers:
  – model/token.go CountUserTokens
  – model/task.go TaskCountAllTasks / TaskCountAllUserTask
  – model/midjourney.go CountAllTasks / CountAllUserTask
  – model/channel.go CountAllChannels / CountAllTags
• Refactored controllers (token, task, midjourney, channel) for 1-based paging & aggregated returns.
• Redesigned `ChannelsTable.js`:
  – `loadChannels`, `syncPageData`, `enrichChannels` for tag-mode grouping without recursion.
  – Fixed runtime white-screen (maximum call-stack) by removing child duplication.
  – Pagination, search, tag-mode, idSort all hot-reload correctly.
• Removed unused `log` import in controller/midjourney.go.

BREAKING CHANGES
Front-end consumers must now expect data.items / total / page / page_size from list endpoints (`/api/channel`, `/api/task`, `/api/mj`, `/api/token`, etc.).
2025-06-12 17:25:25 +08:00
CaIon
3652841684 feat: midjourneys表添加索引 2024-03-17 22:56:17 +08:00
CaIon
62bca310e3 feat: support shorten 2024-03-13 17:46:34 +08:00
CaIon
259c7fcdb0 feat: 初步兼容midjourney-proxy-plus 2024-03-13 15:37:01 +08:00
CaIon
6833c7fd38 fix: 修复mj错误返还费用问题 2024-01-12 13:45:52 +08:00
Xyfacai
825f59e162 optimize: MJ 部分调整、优化
MJ
增加simple-change、list接口,
变换和重试操作区别出来,价格与绘图一样
优化图片返回
2024-01-01 22:46:05 +08:00
Xyfacai
65166c1fa9 fix: 优化 mj 获取进度 2023-12-23 23:14:58 +08:00
CaIon
b58fdc21db fix bug 2023-11-23 19:01:14 +08:00
luxl
b0fae6b39d 绘图列表更新 2023-11-23 18:18:03 +08:00
CaIon
3b780e33fd feat: 改为转发的方式获取midjourney图片 2023-09-12 03:57:03 +08:00
CaIon
f73ecc57c2 移除不必要的功能 2023-09-09 03:11:42 +08:00
CaIon
68b24da6a6 add epay 2023-08-14 22:16:32 +08:00