2026-05-01 20:39:09 +08:00
|
|
|
import { aiPlatformCatalog } from '@geo/shared-types'
|
2026-04-25 22:45:29 +08:00
|
|
|
|
2026-04-18 00:47:57 +08:00
|
|
|
export interface KolPlatformOption {
|
2026-05-01 20:39:09 +08:00
|
|
|
label: string
|
|
|
|
|
value: string
|
2026-04-18 00:47:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
|
|
|
|
|
return [
|
2026-05-01 20:39:09 +08:00
|
|
|
{ label: defaultLabel, value: '通用' },
|
2026-04-25 22:45:29 +08:00
|
|
|
...aiPlatformCatalog.map((item) => ({ label: item.label, value: item.id })),
|
2026-05-01 20:39:09 +08:00
|
|
|
]
|
2026-04-18 00:47:57 +08:00
|
|
|
}
|