From 0b0caf6b64de017b373394ff8d1aabaaff2c8857 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Mon, 11 Aug 2025 12:04:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=B9=E6=8E=A5ai=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/all/generationWorkshop.ts | 12 ++ src/components/_base/navbar/index.vue | 7 +- src/hooks/useGetAiReviewResult.ts | 54 +++++++++ .../explore/detail/index.vue | 5 +- .../explore/list/index.vue | 5 +- .../explore/list/style.scss | 2 +- .../components/content-card/constants.ts | 45 ++++--- .../check/components/content-card/index.vue | 110 +++++++----------- .../check/components/content-card/style.scss | 19 +-- .../manuscript/check/index.vue | 42 ++++++- 10 files changed, 197 insertions(+), 104 deletions(-) create mode 100644 src/hooks/useGetAiReviewResult.ts diff --git a/src/api/all/generationWorkshop.ts b/src/api/all/generationWorkshop.ts index c7efa76..49d6688 100644 --- a/src/api/all/generationWorkshop.ts +++ b/src/api/all/generationWorkshop.ts @@ -78,6 +78,17 @@ export const putWorkAuditsAuditPass = (params = {}) => { return Http.put(`/v1/work-audits/${auditId}/audit-pass`, rest); }; +// 内容稿件审核-AI审查 +export const postWorkAuditsAiReview = (params = {}) => { + const { id, ...rest } = params as { id: string; [key: string]: any }; + return Http.post(`/v1/work-audits/${id}/ai-review`, rest); +}; + +// 内容稿件审核-获取AI审查结果 +export const getWorkAuditsAiReviewResult = (id: string, ticket: string) => { + return Http.get(`/v1/work-audits/${id}/ai-review/${ticket}`); +}; + // 内容稿件-列表(客户) export const getShareWorksList = (shareCode: string) => { return Http.get( @@ -120,3 +131,4 @@ export const deleteShareWorksComments = (id: string, commentId: string, shareCod headers: { 'share-code': shareCode }, }); }; + diff --git a/src/components/_base/navbar/index.vue b/src/components/_base/navbar/index.vue index 2f6507a..89640b1 100644 --- a/src/components/_base/navbar/index.vue +++ b/src/components/_base/navbar/index.vue @@ -1,9 +1,9 @@