添加开放接口日志
This commit is contained in:
@@ -81,6 +81,8 @@ export default {
|
||||
'PushSubscription.download': ['GET', '/api/push/Download/{id}'],
|
||||
'SysOperationLog.operationLogList': ['GET', '/api/oplog/List'],
|
||||
'SysOperationLog.operationLogDownload': ['GET', '/api/oplog/Download/{id}'],
|
||||
'SysOapiLog.oapiLogList': ['GET', '/api/oapilog/List'],
|
||||
'SysOapiLog.oapiLogDownload': ['GET', '/api/oapilog/Download/{id}'],
|
||||
'Identity.current': ['GET', '/api/identity/current'],
|
||||
'Identity.available': ['GET', '/api/identity/available'],
|
||||
'GroupAuthz.userRoles': ['GET', '/api/groupauthz/UserRoles'],
|
||||
|
||||
Vendored
+147
@@ -58,6 +58,19 @@ export interface SysOperationLogQuery {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
}
|
||||
export interface SysOapiLogQuery {
|
||||
logLevel?: number;
|
||||
callerAppKey?: number;
|
||||
callerAppName?: string;
|
||||
requestUri?: string;
|
||||
requestIp?: string;
|
||||
operationType?: string;
|
||||
statusCode?: number;
|
||||
success?: boolean;
|
||||
keyword?: string;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
}
|
||||
export interface SysAppRoleQuery {
|
||||
name?: string;
|
||||
appId?: number;
|
||||
@@ -368,6 +381,32 @@ export interface BasePageResultSysOperationLogListVo {
|
||||
totalPages?: number;
|
||||
hasNext?: boolean;
|
||||
}
|
||||
export interface SysOapiLogListVo {
|
||||
id?: number;
|
||||
logLevel?: number;
|
||||
callerAppKey?: number;
|
||||
callerAppName?: string;
|
||||
requestIp?: string;
|
||||
requestUri?: string;
|
||||
requestMethod?: string;
|
||||
operationType?: string;
|
||||
classMethod?: string;
|
||||
operationDesc?: string;
|
||||
requestParams?: string;
|
||||
statusCode?: number;
|
||||
costTime?: number;
|
||||
userAgent?: string;
|
||||
errorMsg?: string;
|
||||
createTime?: string;
|
||||
}
|
||||
export interface BasePageResultSysOapiLogListVo {
|
||||
total?: number;
|
||||
content?: SysOapiLogListVo[];
|
||||
pageIndex?: number;
|
||||
pageSize?: number;
|
||||
totalPages?: number;
|
||||
hasNext?: boolean;
|
||||
}
|
||||
export interface UserRoleVo {
|
||||
id?: number;
|
||||
name?: string;
|
||||
@@ -5244,6 +5283,114 @@ declare global {
|
||||
config: Config
|
||||
): Alova2Method<Blob, 'SysOperationLog.operationLogDownload', Config>;
|
||||
};
|
||||
SysOapiLog: {
|
||||
/**
|
||||
* ---
|
||||
*
|
||||
* [GET] 开放接口日志分页查询
|
||||
*
|
||||
* **path:** /api/oapilog/List
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* **Query Parameters**
|
||||
* ```ts
|
||||
* type QueryParameters = {
|
||||
* query: {
|
||||
* logLevel?: number
|
||||
* callerAppKey?: number
|
||||
* callerAppName?: string
|
||||
* requestUri?: string
|
||||
* requestIp?: string
|
||||
* operationType?: string
|
||||
* statusCode?: number
|
||||
* success?: boolean
|
||||
* keyword?: string
|
||||
* startTime?: string
|
||||
* endTime?: string
|
||||
* }
|
||||
* pageQuery: {
|
||||
* pageIndex?: number
|
||||
* pageSize?: number
|
||||
* keyword?: string
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* **Response**
|
||||
* ```ts
|
||||
* type Response = {
|
||||
* total?: number
|
||||
* content?: Array<{
|
||||
* id?: number
|
||||
* logLevel?: number
|
||||
* callerAppKey?: number
|
||||
* callerAppName?: string
|
||||
* requestIp?: string
|
||||
* requestUri?: string
|
||||
* requestMethod?: string
|
||||
* operationType?: string
|
||||
* classMethod?: string
|
||||
* operationDesc?: string
|
||||
* requestParams?: string
|
||||
* statusCode?: number
|
||||
* costTime?: number
|
||||
* userAgent?: string
|
||||
* errorMsg?: string
|
||||
* createTime?: string
|
||||
* }>
|
||||
* pageIndex?: number
|
||||
* pageSize?: number
|
||||
* totalPages?: number
|
||||
* hasNext?: boolean
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
oapiLogList<
|
||||
Config extends Alova2MethodConfig<BasePageResultSysOapiLogListVo> & {
|
||||
params: {
|
||||
query: SysOapiLogQuery;
|
||||
pageQuery: BasePageQuery;
|
||||
};
|
||||
}
|
||||
>(
|
||||
config: Config
|
||||
): Alova2Method<BasePageResultSysOapiLogListVo, 'SysOapiLog.oapiLogList', Config>;
|
||||
/**
|
||||
* ---
|
||||
*
|
||||
* [GET] 下载开放接口日志响应原文
|
||||
*
|
||||
* **path:** /api/oapilog/Download/{id}
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* **Path Parameters**
|
||||
* ```ts
|
||||
* type PathParameters = {
|
||||
* id: number
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* **Response**
|
||||
* ```ts
|
||||
* type Response = Blob
|
||||
* ```
|
||||
*/
|
||||
oapiLogDownload<
|
||||
Config extends Alova2MethodConfig<Blob> & {
|
||||
pathParams: {
|
||||
id: number;
|
||||
};
|
||||
}
|
||||
>(
|
||||
config: Config
|
||||
): Alova2Method<Blob, 'SysOapiLog.oapiLogDownload', Config>;
|
||||
};
|
||||
SignKeyInternal: {
|
||||
/**
|
||||
* ---
|
||||
|
||||
Reference in New Issue
Block a user