mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 18:28:44 +08:00 
			
		
		
		
	update: 修改了一些TODO提到的问题
This commit is contained in:
		| @@ -24,41 +24,41 @@ export interface SensitiveWordExportReqVO { | ||||
| } | ||||
|  | ||||
| // 查询敏感词列表 | ||||
| export const getSensitiveWordPageApi = (params: SensitiveWordPageReqVO) => { | ||||
| export const getSensitiveWordPage = (params: SensitiveWordPageReqVO) => { | ||||
|   return request.get({ url: '/system/sensitive-word/page', params }) | ||||
| } | ||||
|  | ||||
| // 查询敏感词详情 | ||||
| export const getSensitiveWordApi = (id: number) => { | ||||
| export const getSensitiveWord = (id: number) => { | ||||
|   return request.get({ url: '/system/sensitive-word/get?id=' + id }) | ||||
| } | ||||
|  | ||||
| // 新增敏感词 | ||||
| export const createSensitiveWordApi = (data: SensitiveWordVO) => { | ||||
| export const createSensitiveWord = (data: SensitiveWordVO) => { | ||||
|   return request.post({ url: '/system/sensitive-word/create', data }) | ||||
| } | ||||
|  | ||||
| // 修改敏感词 | ||||
| export const updateSensitiveWordApi = (data: SensitiveWordVO) => { | ||||
| export const updateSensitiveWord = (data: SensitiveWordVO) => { | ||||
|   return request.put({ url: '/system/sensitive-word/update', data }) | ||||
| } | ||||
|  | ||||
| // 删除敏感词 | ||||
| export const deleteSensitiveWordApi = (id: number) => { | ||||
| export const deleteSensitiveWord = (id: number) => { | ||||
|   return request.delete({ url: '/system/sensitive-word/delete?id=' + id }) | ||||
| } | ||||
|  | ||||
| // 导出敏感词 | ||||
| export const exportSensitiveWordApi = (params: SensitiveWordExportReqVO) => { | ||||
| export const exportSensitiveWord = (params: SensitiveWordExportReqVO) => { | ||||
|   return request.download({ url: '/system/sensitive-word/export-excel', params }) | ||||
| } | ||||
|  | ||||
| // 获取所有敏感词的标签数组 | ||||
| export const getSensitiveWordTagsApi = () => { | ||||
| export const getSensitiveWordTags = () => { | ||||
|   return request.get({ url: '/system/sensitive-word/get-tags' }) | ||||
| } | ||||
|  | ||||
| // 获得文本所包含的不合法的敏感词数组 | ||||
| export const validateTextApi = (id: number) => { | ||||
| export const validateText = (id: number) => { | ||||
|   return request.get({ url: '/system/sensitive-word/validate-text?' + id }) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 puhui999
					puhui999