From e38c58e3d7af6092fc03ae564b392f1a0a2b056f Mon Sep 17 00:00:00 2001 From: liangxu Date: Sat, 25 Apr 2026 22:45:29 +0800 Subject: [PATCH] refactor(admin-web): source KOL platform options from shared catalog Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/admin-web/src/lib/kol-platform-options.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/admin-web/src/lib/kol-platform-options.ts b/apps/admin-web/src/lib/kol-platform-options.ts index d0c94d1..eec79bf 100644 --- a/apps/admin-web/src/lib/kol-platform-options.ts +++ b/apps/admin-web/src/lib/kol-platform-options.ts @@ -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 })), ]; }