|
|
@@ -11,7 +11,15 @@ const hetongRenewRoutes = createCrudRoutes({
|
|
|
listSchema: HetongRenewSchema,
|
|
|
searchFields: ['contractId', 'state', 'auditStatus'],
|
|
|
relations: ['contract.client'],
|
|
|
- middleware: [authMiddleware]
|
|
|
+ middleware: [authMiddleware],
|
|
|
+ dataPermission: {
|
|
|
+ entity: 'HetongRenew',
|
|
|
+ userIdField: 'userId'
|
|
|
+ },
|
|
|
+ userTracking: {
|
|
|
+ createdByField: 'userId',
|
|
|
+ updatedByField: 'userId'
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
export default hetongRenewRoutes;
|