|
|
@@ -1,6 +1,7 @@
|
|
|
import { GenericCrudService } from '@d8d/shared-crud';
|
|
|
import { DataSource, DeepPartial, In } from 'typeorm';
|
|
|
import { GoodsMt } from '../entities/goods.entity.mt';
|
|
|
+import { FileMt } from '@d8d/file-module-mt';
|
|
|
|
|
|
export class GoodsServiceMt extends GenericCrudService<GoodsMt> {
|
|
|
constructor(dataSource: DataSource) {
|
|
|
@@ -12,7 +13,7 @@ export class GoodsServiceMt extends GenericCrudService<GoodsMt> {
|
|
|
relationFields: {
|
|
|
slideImageIds: {
|
|
|
relationName: 'slideImages',
|
|
|
- targetEntity: Object // 这里需要替换为实际的File实体
|
|
|
+ targetEntity: FileMt
|
|
|
}
|
|
|
},
|
|
|
tenantOptions: {
|