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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user