|
|
@@ -10,7 +10,11 @@ const operationLogRoutes = createCrudRoutes({
|
|
|
getSchema: OperationLogSchema,
|
|
|
listSchema: OperationLogSchema,
|
|
|
searchFields: ['resourceType', 'action', 'endpoint', 'username', 'ipAddress'],
|
|
|
- middleware: [authMiddleware]
|
|
|
+ middleware: [authMiddleware],
|
|
|
+ userTracking: {
|
|
|
+ createdByField: 'userId',
|
|
|
+ updatedByField: undefined // 操作日志通常不需要记录更新人
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
export default operationLogRoutes;
|