仰望星辰工作室

better-staridc-MNBT

Z zfhsh first commit 2 个月前
1import { apiGn } from '@/shared/api/http'
2
3const S = { silent: true }
4
5/** 操作日志列表 */
6export function listLog(params) {
7 return apiGn('listlog', params, S)
8}
9
10/** 删除日志 */
11export function deleteLog(id) {
12 return apiGn('logsc', { id })
13}
14
15/** 批量删除日志(注意:接口接受逗号分隔字符串) */
16export function deleteLogBatch(idsz) {
17 const ids = Array.isArray(idsz) ? idsz.join(',') : String(idsz)
18 return apiGn('logscxz', { idsz: ids })
19}
20
21/** 清空日志 */
22export function clearLog() {
23 return apiGn('logclear', {})
24}