Files
geo/apps/admin-web/src/lib/kol-platform-options.ts
T

14 lines
356 B
TypeScript
Raw Normal View History

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 })),
]
}