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 {
|
||||
label: string;
|
||||
value: string;
|
||||
@@ -6,10 +8,6 @@ export interface KolPlatformOption {
|
||||
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
|
||||
return [
|
||||
{ label: defaultLabel, value: "通用" },
|
||||
{ label: "小红书", value: "xiaohongshu" },
|
||||
{ label: "微信", value: "wechat" },
|
||||
{ label: "豆包", value: "doubao" },
|
||||
{ label: "DeepSeek", value: "deepseek" },
|
||||
{ label: "ChatGPT", value: "chatgpt" },
|
||||
...aiPlatformCatalog.map((item) => ({ label: item.label, value: item.id })),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user