feat(kol): workspace KOL cards + article source type
This commit is contained in:
@@ -47,6 +47,7 @@ import type {
|
||||
KolDashboardTrendPoint,
|
||||
Keyword,
|
||||
KeywordRequest,
|
||||
KolWorkspaceCard,
|
||||
LoginRequest,
|
||||
LoginResponse,
|
||||
MediaPlatform,
|
||||
@@ -199,6 +200,9 @@ export const workspaceApi = {
|
||||
templateCards() {
|
||||
return apiClient.get<TemplateCard[]>("/api/tenant/workspace/template-cards");
|
||||
},
|
||||
kolCards() {
|
||||
return apiClient.get<KolWorkspaceCard[]>("/api/tenant/workspace/kol-cards");
|
||||
},
|
||||
};
|
||||
|
||||
export const templatesApi = {
|
||||
|
||||
@@ -77,6 +77,9 @@ export function getSourceTypeLabel(sourceType?: string | null, generationMode?:
|
||||
if (sourceType === "free_create") {
|
||||
return i18n.global.t("status.sourceType.free_create");
|
||||
}
|
||||
if (sourceType === "kol") {
|
||||
return i18n.global.t("status.sourceType.kol");
|
||||
}
|
||||
if (sourceType === "custom_generation") {
|
||||
if (generationMode === "schedule") {
|
||||
return i18n.global.t("status.sourceType.schedule_task");
|
||||
|
||||
Reference in New Issue
Block a user