Files
shz-admin/src/services/logs/mobilelog.ts
chenshaohua 30c8a7e8cf
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
first commit
2025-11-10 16:28:01 +08:00

46 lines
1.2 KiB
TypeScript

import { request } from '@umijs/max';
import { downLoadXlsx } from '@/utils/downloadfile';
// 查询操作日志记录列表
export async function getMobileLogList(params?: API.Logs.MobilelogListParams) {
return request<API.Logs.OperlogPageResult>('/api/cms/operlog/list', {
method: 'GET',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
params
});
}
// 修改操作日志记录
export async function updateMobilelog(params: API.Logs.Mobilelog) {
return request<API.Result>('/api/cms/operlog', {
method: 'PUT',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: params
});
}
// 新增操作日志记录
export async function addMobilelog(params: API.Logs.Mobilelog) {
return request<API.Result>('/api/cms/operlog', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: params
});
}
// 删除操作日志记录
export async function removeMobilelog(ids: string) {
return request<API.Result>(`/api/cms/operlog/${ids}`, {
method: 'DELETE'
});
}
export function exportMobilelog(params?: API.Logs.OperlogListParams) {
return downLoadXlsx(`/api/cms/operlog/export`, { params }, `operlog_${new Date().getTime()}.xlsx`);
}