feat: 登录日志新增解锁和清空按钮

This commit is contained in:
xlsea
2025-05-10 10:56:45 +08:00
parent 5b0ae4443c
commit d6514c8e44
3 changed files with 84 additions and 3 deletions

View File

@ -16,3 +16,19 @@ export function fetchBatchDeleteLoginInfor(infoIds: CommonType.IdType[]) {
method: 'delete'
});
}
/** 解锁系统访问记录 */
export function fetchUnlockLoginInfor(username: string) {
return request<boolean>({
url: `/monitor/logininfor/unlock/${username}`,
method: 'get'
});
}
/** 清空系统访问记录 */
export function fetchCleanLoginInfor() {
return request<boolean>({
url: '/monitor/logininfor/clean',
method: 'delete'
});
}