feat(publish): add tenant publish management with desktop deep-link
Expose tenant-authenticated publish task list and retry endpoints so the admin web can show desktop publish state without an Electron bridge, and register a `shengxintui://` deep-link so the page can hand off to the desktop client workbench. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -77,6 +77,7 @@ const enUS = {
|
||||
freeCreate: 'Free Create',
|
||||
imitation: 'Imitation Create',
|
||||
media: 'Media',
|
||||
publishManagement: 'Publish Management',
|
||||
brandManagement: 'Brand Management',
|
||||
tracking: 'Tracking',
|
||||
trackingDetail: 'Data Details',
|
||||
@@ -202,6 +203,11 @@ const enUS = {
|
||||
description:
|
||||
'Review desktop-managed media bindings, authorization state, and sync results in one place.',
|
||||
},
|
||||
publishManagement: {
|
||||
title: 'Publish Management',
|
||||
description:
|
||||
'Review desktop publish tasks, external links, account workbench entry points, and retry state.',
|
||||
},
|
||||
brands: {
|
||||
title: 'Brand Library',
|
||||
description: 'Manage keywords, question sets, and competitors around each brand.',
|
||||
|
||||
@@ -77,6 +77,7 @@ const zhCN = {
|
||||
freeCreate: "自由创作",
|
||||
imitation: "仿写创作",
|
||||
media: "媒体管理",
|
||||
publishManagement: "发文管理",
|
||||
brandManagement: "品牌管理",
|
||||
brands: "品牌词库",
|
||||
tracking: "数据追踪",
|
||||
@@ -195,6 +196,10 @@ const zhCN = {
|
||||
title: "媒体管理",
|
||||
description: "统一查看桌面端媒体账号绑定、授权状态与同步结果。",
|
||||
},
|
||||
publishManagement: {
|
||||
title: "发文管理",
|
||||
description: "查看桌面端发布任务、外链、账号工作台入口和重发状态。",
|
||||
},
|
||||
brands: {
|
||||
title: "品牌词库",
|
||||
description: "围绕品牌维护关键词、问题集和竞品信息。",
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
PictureOutlined,
|
||||
RadarChartOutlined,
|
||||
SearchOutlined,
|
||||
SendOutlined,
|
||||
} from '@ant-design/icons-vue'
|
||||
import { useQuery } from '@tanstack/vue-query'
|
||||
import { computed, type Component } from 'vue'
|
||||
@@ -130,6 +131,7 @@ const navSections = computed<NavSection[]>(() => {
|
||||
title: t('nav.contentManagement'),
|
||||
items: [
|
||||
{ key: '/media', label: t('nav.media'), icon: GlobalOutlined },
|
||||
{ key: '/publish-management', label: t('nav.publishManagement'), icon: SendOutlined },
|
||||
{ key: '/knowledge', label: t('nav.knowledge'), icon: BookOutlined },
|
||||
{ key: '/images', label: t('nav.images'), icon: PictureOutlined },
|
||||
],
|
||||
|
||||
@@ -69,6 +69,7 @@ import type {
|
||||
KolSubscriptionPromptCard,
|
||||
KolSubscriptionPromptSchema,
|
||||
KolWorkspaceCard,
|
||||
ListDesktopPublishTasksParams,
|
||||
LoginRequest,
|
||||
LoginResponse,
|
||||
MediaPlatform,
|
||||
@@ -114,6 +115,7 @@ import type {
|
||||
TemplateSaveDraftResponse,
|
||||
TemplateTitleTaskRequest,
|
||||
TemplateTitleTaskResultResponse,
|
||||
TenantPublishTaskListResponse,
|
||||
UpdateArticleRequest,
|
||||
UpdateKolPackageRequest,
|
||||
UpdateKolPromptRequest,
|
||||
@@ -1105,6 +1107,19 @@ export const publishJobsApi = {
|
||||
},
|
||||
}
|
||||
|
||||
export const publishTasksApi = {
|
||||
list(params: ListDesktopPublishTasksParams = {}) {
|
||||
return apiClient.get<TenantPublishTaskListResponse>('/api/tenant/publish-tasks', {
|
||||
params,
|
||||
})
|
||||
},
|
||||
retry(taskId: string) {
|
||||
return apiClient.post<CreatePublishJobResponse>(
|
||||
`/api/tenant/publish-tasks/${encodeURIComponent(taskId)}/retry`,
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
export const complianceApi = {
|
||||
runtimeStatus() {
|
||||
return apiClient.get<ComplianceRuntimeStatus>('/api/tenant/compliance/runtime-status')
|
||||
|
||||
@@ -124,6 +124,16 @@ const router = createRouter({
|
||||
navKey: '/media',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'publish-management',
|
||||
name: 'publish-management',
|
||||
component: () => import('@/views/PublishManagementView.vue'),
|
||||
meta: {
|
||||
titleKey: 'route.publishManagement.title',
|
||||
descriptionKey: 'route.publishManagement.description',
|
||||
navKey: '/publish-management',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'brands',
|
||||
name: 'brands',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user