在资产管理、SKU管理和分类管理中新增操作日志查看功能,支持查看各实体的操作历史记录,同时新增操作日志API接口定义包含查询参数和日志信息类型

This commit is contained in:
WUSIJIAN
2026-01-16 14:19:24 +08:00
parent 404f0b719d
commit 30da5e3c29
5 changed files with 208 additions and 3 deletions

View File

@@ -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,
});
}