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 @@ - -