Files
geo/apps/admin-web/src/lib/kol-platform-options.ts
T
2026-04-25 22:45:29 +08:00

14 lines
360 B
TypeScript

import { aiPlatformCatalog } from "@geo/shared-types";
export interface KolPlatformOption {
label: string;
value: string;
}
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
return [
{ label: defaultLabel, value: "通用" },
...aiPlatformCatalog.map((item) => ({ label: item.label, value: item.id })),
];
}