feat(platform): add platform access control with quota management

- Add userPlatform hook to derive available platforms from company config
- Add platform access section in company popup with MT4/MT5 switch and quota limits
- Add platform access column in company list showing quota usage
- Replace hardcoded platform options with dynamic userPlatform in account/alert/data-source pages
- Add getPlatformList API and extend CompanyListItem typings
- Add i18n translations for platform access related keys
- Update dev proxy target port to 8082

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 17:57:25 +08:00
parent 43d6e9207a
commit dfcba94cf5
13 changed files with 178 additions and 35 deletions

View File

@@ -612,6 +612,12 @@ export async function closeSSEWithApi(options?: ObjType) {
});
}
export async function getPlatformList(options?: ObjType) {
return request("/system/platform-list", {
method: "GET",
...(options || {}),
});
}
export async function getDashboardTotal(options?: ObjType) {
return request("/dashboard/total", {
method: "GET",