mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-04 21:34:08 +08:00
项目结构调整 x 11 : 修改前端项目为 yudao-admin-ui
This commit is contained in:
54
yudao-admin-ui/src/api/system/errorCode.js
Normal file
54
yudao-admin-ui/src/api/system/errorCode.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建错误码
|
||||
export function createErrorCode(data) {
|
||||
return request({
|
||||
url: '/system/error-code/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新错误码
|
||||
export function updateErrorCode(data) {
|
||||
return request({
|
||||
url: '/system/error-code/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除错误码
|
||||
export function deleteErrorCode(id) {
|
||||
return request({
|
||||
url: '/system/error-code/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得错误码
|
||||
export function getErrorCode(id) {
|
||||
return request({
|
||||
url: '/system/error-code/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得错误码分页
|
||||
export function getErrorCodePage(query) {
|
||||
return request({
|
||||
url: '/system/error-code/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出错误码 Excel
|
||||
export function exportErrorCodeExcel(query) {
|
||||
return request({
|
||||
url: '/system/error-code/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user