refactor(admin-web): source KOL platform options from shared catalog
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import { aiPlatformCatalog } from "@geo/shared-types";
|
||||||
|
|
||||||
export interface KolPlatformOption {
|
export interface KolPlatformOption {
|
||||||
label: string;
|
label: string;
|
||||||
value: string;
|
value: string;
|
||||||
@@ -6,10 +8,6 @@ export interface KolPlatformOption {
|
|||||||
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
|
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
|
||||||
return [
|
return [
|
||||||
{ label: defaultLabel, value: "通用" },
|
{ label: defaultLabel, value: "通用" },
|
||||||
{ label: "小红书", value: "xiaohongshu" },
|
...aiPlatformCatalog.map((item) => ({ label: item.label, value: item.id })),
|
||||||
{ label: "微信", value: "wechat" },
|
|
||||||
{ label: "豆包", value: "doubao" },
|
|
||||||
{ label: "DeepSeek", value: "deepseek" },
|
|
||||||
{ label: "ChatGPT", value: "chatgpt" },
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user