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:
2026-04-25 22:45:29 +08:00
parent c0617b70d8
commit e38c58e3d7
@@ -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 })),
];
}