add log component: prolist

This commit is contained in:
Dawn1Ocean
2024-04-02 02:55:09 +08:00
parent 0d1665f609
commit 2cb4684130
17 changed files with 350 additions and 604 deletions
+57
View File
@@ -0,0 +1,57 @@
import { LogsItem } from '@/pages/Logs/logItem';
declare namespace API {
type CurrentUser = {
name?: string;
avatar?: string;
userid?: string;
email?: string;
signature?: string;
title?: string;
group?: string;
tags?: { key?: string; label?: string }[];
notifyCount?: number;
unreadCount?: number;
country?: string;
access?: string;
geographic?: {
province?: { label?: string; key?: string };
city?: { label?: string; key?: string };
};
address?: string;
phone?: string;
};
type LoginResult = {
status?: string;
type?: string;
currentAuthority?: string;
};
type PageParams = {
current?: number;
pageSize?: number;
};
type LoginParams = {
username?: string;
password?: string;
autoLogin?: boolean;
type?: string;
};
type ErrorResponse = {
/** 业务约定的错误码 */
errorCode: string;
/** 业务上的错误信息 */
errorMessage?: string;
/** 业务上的请求是否成功 */
success?: boolean;
};
type LogList = {
pageIndex: number;
pageCount: number;
size: number;
data: LogsItem[];
};
}