feat(billing): add metering formula admin tab #5

Merged
tkmind merged 1 commits from feature/billing-formula-admin-config into main 2026-08-06 09:00:06 +00:00
Owner

Summary

  • Add「计费中心 → 计量公式」tab to edit cost-mode billing knobs (margin multiplier, FX rate, token fallback rates).
  • Wire GET/PUT /admin-api/billing/config through Memind shared billing-admin-config service.
  • Depends on Memind branch feature/billing-formula-admin-config for Portal charge-path support.

Test plan

  • Open /billing/formula and confirm current values load (source may be env).
  • Change margin multiplier, save, reload and confirm persistence.
  • Confirm ordinary users get 403 on /admin-api/billing/config.
  • After Memind side is deployed, verify Portal billing reads the new DB config within a few seconds.
## Summary - Add「计费中心 → 计量公式」tab to edit cost-mode billing knobs (margin multiplier, FX rate, token fallback rates). - Wire `GET/PUT /admin-api/billing/config` through Memind shared `billing-admin-config` service. - Depends on Memind branch `feature/billing-formula-admin-config` for Portal charge-path support. ## Test plan - [ ] Open `/billing/formula` and confirm current values load (source may be env). - [ ] Change margin multiplier, save, reload and confirm persistence. - [ ] Confirm ordinary users get 403 on `/admin-api/billing/config`. - [ ] After Memind side is deployed, verify Portal billing reads the new DB config within a few seconds.
tkmind added 1 commit 2026-08-06 08:56:00 +00:00
Expose margin multiplier, FX rate, and cost-mode settings under 计费中心 so operators can adjust DeepSeek billing without env edits.

Co-authored-by: Cursor <cursoragent@cursor.com>
tkmind merged commit b45fcabbf3 into main 2026-08-06 09:00:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tkmind/memind_adm#5