⚡ 登录历史参数化.
This commit is contained in:
@@ -35,8 +35,8 @@ export function updateCurrentUser(request: UserUpdateRequest) {
|
||||
/**
|
||||
* 查询当前用户登录日志
|
||||
*/
|
||||
export function getCurrentLoginHistory() {
|
||||
return axios.get<LoginHistoryQueryResponse[]>('/infra/mine/login-history');
|
||||
export function getCurrentLoginHistory(count: number) {
|
||||
return axios.get<LoginHistoryQueryResponse[]>('/infra/mine/login-history', { params: { count } });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -192,6 +192,6 @@ export function offlineUserSession(request: UserSessionOfflineRequest) {
|
||||
/**
|
||||
* 查询登录日志
|
||||
*/
|
||||
export function getLoginHistory(username: string) {
|
||||
return axios.get<LoginHistoryQueryResponse[]>('/infra/system-user/login-history', { params: { username } });
|
||||
export function getLoginHistory(username: string, count: number) {
|
||||
return axios.get<LoginHistoryQueryResponse[]>('/infra/system-user/login-history', { params: { username, count } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user