Skip to content

feat: 模型广场 + 渠道调度策略引擎 - #1

Open
luohui1 wants to merge 5 commits into
mainfrom
custom
Open

feat: 模型广场 + 渠道调度策略引擎#1
luohui1 wants to merge 5 commits into
mainfrom
custom

Conversation

@luohui1

@luohui1 luohui1 commented Jul 9, 2026

Copy link
Copy Markdown

概述

custom 分支的两大魔改功能(均以"新增文件为主、少改上游"方式实现,便于后续合并上游):

1. 模型广场(Apple 风格)

  • 登录后 /models 页面:模型 × 单价 × 分组倍率聚合展示,分组/供应商/类型筛选 + 卡片/列表切换
  • 极光渐变 hero、毛玻璃工具栏、iOS 分段控件、深色模式与 reduced-motion 支持

2. 渠道调度策略引擎(监控驱动的自动调度)

  • 新表 scheduling_policies(规则:监控 + 连续失败次数/延迟阈值 → 临停或降优先级)+ scheduling_actions(全量审计,含恢复还原)
  • ChannelMonitorService.RunCheck 完成后回调策略引擎(setter 注入,非阻塞,错误只记日志)
  • 动作:SetTempUnschedulable 临停(可定时长或直到恢复,30 天兜底)/ Priority 增量降级;连续成功 N 次自动恢复原状态;冷却时间防抖动
  • 管理端 API /admin/scheduling-policies(CRUD + 动作历史)+ 前端「调度策略」页(策略列表/表单 + 动作历史时间线,zh/en i18n)

测试

  • 后端:go vet + unit 测试全绿(含调度引擎 6 个状态机单测:触发/恢复/降级/延迟/去重/校验)
  • 前端:eslint、vue-tsc、897 个单测全绿

后续

  • 二期:上游站点适配器(余额/倍率条件源,轻量版 transit-hub)

shelby36675491 and others added 4 commits July 9, 2026 20:51
…ing and group rates

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…er/type filters and card/list views; drop landing pricing preview and public endpoint

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…, frosted toolbar, iOS segmented control, refined cards and motion)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@luohui1 luohui1 changed the title feat: 模型广场 + 落地页价格预览(UI 一期) feat: 模型广场(登录版,Apple 风格 UI) Jul 9, 2026
…itize/recover accounts with audit trail and admin UI)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@luohui1 luohui1 changed the title feat: 模型广场(登录版,Apple 风格 UI) feat: 模型广场 + 渠道调度策略引擎 Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant