|
|
@@ -73,7 +73,7 @@ const yourEntityRoutes = createCrudRoutes({
|
|
|
getSchema: YourEntitySchema,
|
|
|
listSchema: YourEntitySchema,
|
|
|
searchFields: ['name', 'description'], // 可选,指定搜索字段
|
|
|
- relations: ['relatedEntity'], // 可选,指定关联查询关系
|
|
|
+ relations: ['relatedEntity'], // 可选,指定关联查询关系(支持嵌套关联,如 ['relatedEntity.client'])
|
|
|
middleware: [authMiddleware] // 可选,添加中间件
|
|
|
});
|
|
|
|