37 lines
1009 B
TypeScript
37 lines
1009 B
TypeScript
/**
|
|
* 操作日志 API
|
|
*/
|
|
import { get } from '@/utils/request';
|
|
import type {
|
|
OperationLogQueryParams,
|
|
SysOperationLogVO,
|
|
TournamentAdminOperationPageVO,
|
|
PageData,
|
|
ApiResult,
|
|
} from './types';
|
|
|
|
export type {
|
|
SysOperationLogVO,
|
|
TournamentAdminOperationPageVO,
|
|
OperationLogQueryParams,
|
|
PageData,
|
|
ApiResult,
|
|
} from './types';
|
|
|
|
/** GET /admin/sys/operation/page — 系统操作日志分页 */
|
|
export async function getOperationLogList(
|
|
params: OperationLogQueryParams,
|
|
): Promise<ApiResult<PageData<SysOperationLogVO>>> {
|
|
return get('/sys/operation/page', params as Record<string, any>);
|
|
}
|
|
|
|
/** GET /admin/tournament/operation/page — 赛事操作日志分页 */
|
|
export async function getOperationLogs(
|
|
params: OperationLogQueryParams,
|
|
): Promise<ApiResult<PageData<TournamentAdminOperationPageVO>>> {
|
|
return get('/tournament/operation/page', params as Record<string, any>);
|
|
}
|
|
|
|
/** @deprecated 使用 getOperationLogList */
|
|
export const getOperationLogPage = getOperationLogList;
|