From 0925253a9dd0e3d9502178fc5c8f4a907eaeb852 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 22 Apr 2024 19:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A7=BB=E9=99=A4=E3=80=91=E6=95=8F?= =?UTF-8?q?=E6=84=9F=E8=AF=8D=E7=9A=84=E7=AE=A1=E7=90=86=EF=BC=8C=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E9=A1=B9=E7=9B=AE=E7=9A=84=E5=A4=8D=E6=9D=82=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/sensitiveWord/index.ts | 58 ---- .../sensitiveWord/SensitiveWordForm.vue | 131 --------- .../sensitiveWord/SensitiveWordTestForm.vue | 91 ------- src/views/system/sensitiveWord/index.vue | 253 ------------------ 4 files changed, 533 deletions(-) delete mode 100644 src/api/system/sensitiveWord/index.ts delete mode 100644 src/views/system/sensitiveWord/SensitiveWordForm.vue delete mode 100644 src/views/system/sensitiveWord/SensitiveWordTestForm.vue delete mode 100644 src/views/system/sensitiveWord/index.vue diff --git a/src/api/system/sensitiveWord/index.ts b/src/api/system/sensitiveWord/index.ts deleted file mode 100644 index 1116226f..00000000 --- a/src/api/system/sensitiveWord/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -import request from '@/config/axios' -import qs from 'qs' - -export interface SensitiveWordVO { - id: number - name: string - status: number - description: string - tags: string[] - createTime: Date -} - -export interface SensitiveWordTestReqVO { - text: string - tag: string[] -} - -// 查询敏感词列表 -export const getSensitiveWordPage = (params: PageParam) => { - return request.get({ url: '/system/sensitive-word/page', params }) -} - -// 查询敏感词详情 -export const getSensitiveWord = (id: number) => { - return request.get({ url: '/system/sensitive-word/get?id=' + id }) -} - -// 新增敏感词 -export const createSensitiveWord = (data: SensitiveWordVO) => { - return request.post({ url: '/system/sensitive-word/create', data }) -} - -// 修改敏感词 -export const updateSensitiveWord = (data: SensitiveWordVO) => { - return request.put({ url: '/system/sensitive-word/update', data }) -} - -// 删除敏感词 -export const deleteSensitiveWord = (id: number) => { - return request.delete({ url: '/system/sensitive-word/delete?id=' + id }) -} - -// 导出敏感词 -export const exportSensitiveWord = (params) => { - return request.download({ url: '/system/sensitive-word/export-excel', params }) -} - -// 获取所有敏感词的标签数组 -export const getSensitiveWordTagList = () => { - return request.get({ url: '/system/sensitive-word/get-tags' }) -} - -// 获得文本所包含的不合法的敏感词数组 -export const validateText = (query: SensitiveWordTestReqVO) => { - return request.get({ - url: '/system/sensitive-word/validate-text?' + qs.stringify(query, { arrayFormat: 'repeat' }) - }) -} diff --git a/src/views/system/sensitiveWord/SensitiveWordForm.vue b/src/views/system/sensitiveWord/SensitiveWordForm.vue deleted file mode 100644 index 795b8148..00000000 --- a/src/views/system/sensitiveWord/SensitiveWordForm.vue +++ /dev/null @@ -1,131 +0,0 @@ - - diff --git a/src/views/system/sensitiveWord/SensitiveWordTestForm.vue b/src/views/system/sensitiveWord/SensitiveWordTestForm.vue deleted file mode 100644 index d83be843..00000000 --- a/src/views/system/sensitiveWord/SensitiveWordTestForm.vue +++ /dev/null @@ -1,91 +0,0 @@ - - diff --git a/src/views/system/sensitiveWord/index.vue b/src/views/system/sensitiveWord/index.vue deleted file mode 100644 index 05aff7a5..00000000 --- a/src/views/system/sensitiveWord/index.vue +++ /dev/null @@ -1,253 +0,0 @@ - -