feat: 对接在线用户

This commit is contained in:
AN
2025-04-27 23:28:53 +08:00
parent 318abe92cf
commit d751c14f7b
12 changed files with 302 additions and 13 deletions

View File

@ -134,5 +134,34 @@ declare namespace Api {
value: number;
}[];
}>;
type OnlineUser = Common.CommonRecord<{
/** 用户账号 */
userName: string;
/** 登录IP地址 */
ipaddr: string;
/** 登录地点 */
loginLocation: string;
/** 浏览器类型 */
browser: string;
/** 操作系统 */
os: string;
/** 所在部门 */
deptName: string;
/** 设备类型 */
deviceType: string;
/** 登录时间 */
loginTime: string;
/** 令牌ID */
tokenId: string;
}>;
/** online user list */
type OnlineUserList = Api.Common.PaginatingQueryRecord<OnlineUser>;
/** online user search params */
type OnlineUserSearchParams = CommonType.RecordNullable<
Pick<Api.Monitor.OnlineUser, 'userName' | 'ipaddr'> & Api.Common.CommonSearchParams
>;
}
}

View File

@ -26,6 +26,7 @@ declare module "@elegant-router/types" {
"monitor": "/monitor";
"monitor_cache": "/monitor/cache";
"monitor_login-infor": "/monitor/login-infor";
"monitor_online": "/monitor/online";
"monitor_oper-log": "/monitor/oper-log";
"social-callback": "/social-callback";
"system": "/system";
@ -110,6 +111,7 @@ declare module "@elegant-router/types" {
| "home"
| "monitor_cache"
| "monitor_login-infor"
| "monitor_online"
| "monitor_oper-log"
| "system_client"
| "system_config"