mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2026-05-14 11:18:05 +00:00
refactor(api): api code style
This commit is contained in:
@@ -19,31 +19,31 @@ export interface ErrorCodePageReqVO extends PageParam {
|
||||
}
|
||||
|
||||
// 查询错误码列表
|
||||
export const getErrorCodePage = (params: ErrorCodePageReqVO) => {
|
||||
export function getErrorCodePage(params: ErrorCodePageReqVO) {
|
||||
return defHttp.get({ url: '/system/error-code/page', params })
|
||||
}
|
||||
|
||||
// 查询错误码详情
|
||||
export const getErrorCode = (id: number) => {
|
||||
export function getErrorCode(id: number) {
|
||||
return defHttp.get({ url: '/system/error-code/get?id=' + id })
|
||||
}
|
||||
|
||||
// 新增错误码
|
||||
export const createErrorCode = (data: ErrorCodeVO) => {
|
||||
export function createErrorCode(data: ErrorCodeVO) {
|
||||
return defHttp.post({ url: '/system/error-code/create', data })
|
||||
}
|
||||
|
||||
// 修改错误码
|
||||
export const updateErrorCode = (data: ErrorCodeVO) => {
|
||||
export function updateErrorCode(data: ErrorCodeVO) {
|
||||
return defHttp.put({ url: '/system/error-code/update', data })
|
||||
}
|
||||
|
||||
// 删除错误码
|
||||
export const deleteErrorCode = (id: number) => {
|
||||
export function deleteErrorCode(id: number) {
|
||||
return defHttp.delete({ url: '/system/error-code/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 导出错误码
|
||||
export const excelErrorCode = (params: ErrorCodePageReqVO) => {
|
||||
export function excelErrorCode(params: ErrorCodePageReqVO) {
|
||||
return defHttp.download({ url: '/system/error-code/export-excel', params }, '错误码.xls')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user