在资产管理、SKU管理和分类管理中新增操作日志查看功能,支持查看各实体的操作历史记录,同时新增操作日志API接口定义包含查询参数和日志信息类型
This commit is contained in:
@@ -191,3 +191,32 @@ export function stockOperation(data: StockOperationParams) {
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 操作日志查询参数
|
||||
export interface LogQueryParams {
|
||||
collection_id: string;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
// 操作日志信息
|
||||
export interface OperationLogInfo {
|
||||
id: string;
|
||||
service_name: string;
|
||||
collection: string;
|
||||
collection_id: string[];
|
||||
operation: string;
|
||||
creator: string;
|
||||
createdAt: string;
|
||||
data: { FieldName: string; FieldValue: any }[] | null;
|
||||
ip_address: string;
|
||||
}
|
||||
|
||||
// 查询操作日志
|
||||
export function listLogs(params: LogQueryParams) {
|
||||
return newService({
|
||||
url: '/assets/log/listLogs',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user