feat(日志管理): 开发日志管理功能。
fix(项目任务): 1、任务完成后需要依然能够修改工作日志,但是只能修改工作内容和上传附件。2、任务完成后,协办人的工作日志不应该能删除、所有任务里的成员不能新增工作日志,前端不显示新增、删除按钮。3、团队成员的面板,在成员排序时,让有下属的成员提前。4、在任务弹出框有个快速用执行的信息填充的icon。
This commit is contained in:
151
src/typings/api/system-log.d.ts
vendored
Normal file
151
src/typings/api/system-log.d.ts
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
declare namespace Api {
|
||||
/**
|
||||
* namespace SystemLog
|
||||
*
|
||||
* backend api module: "system/*-log"
|
||||
*/
|
||||
namespace SystemLog {
|
||||
namespace Common {
|
||||
interface PageParams {
|
||||
pageNo: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
interface PageResult<T = any> {
|
||||
total: number;
|
||||
list: T[];
|
||||
}
|
||||
}
|
||||
|
||||
namespace Login {
|
||||
interface Log {
|
||||
id: string;
|
||||
logType: number;
|
||||
userId?: string | null;
|
||||
userType?: number | null;
|
||||
traceId?: string | null;
|
||||
username: string;
|
||||
result: number;
|
||||
userIp: string;
|
||||
userAgent?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userIp: string;
|
||||
username: string;
|
||||
status: boolean;
|
||||
createTime: string[];
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace Operate {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userName: string;
|
||||
userType: number;
|
||||
type: string;
|
||||
subType: string;
|
||||
bizId?: string | null;
|
||||
action?: string | null;
|
||||
extra?: string | null;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
type: string;
|
||||
requestMethod: string;
|
||||
subType: string;
|
||||
action: string;
|
||||
createTime: string[];
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace ApiAccess {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
requestParams?: string | null;
|
||||
responseBody?: string | null;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
operateModule?: string | null;
|
||||
operateName?: string | null;
|
||||
operateType?: number | null;
|
||||
beginTime: string;
|
||||
endTime: string;
|
||||
duration: number;
|
||||
resultCode: number;
|
||||
resultMsg?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestUrl: string;
|
||||
beginTime: string[];
|
||||
duration: number;
|
||||
resultCode: number;
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace ApiError {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
requestParams?: string | null;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
exceptionTime: string;
|
||||
exceptionName: string;
|
||||
exceptionMessage: string;
|
||||
exceptionRootCauseMessage?: string | null;
|
||||
exceptionStackTrace?: string | null;
|
||||
exceptionClassName?: string | null;
|
||||
exceptionFileName?: string | null;
|
||||
exceptionMethodName?: string | null;
|
||||
exceptionLineNumber?: number | null;
|
||||
processStatus: number;
|
||||
processTime?: string | null;
|
||||
processUserId?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestUrl: string;
|
||||
exceptionTime: string[];
|
||||
processStatus: number;
|
||||
}
|
||||
>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user