cc-core-cli 1.0.81 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -421,4 +421,10 @@ export class CoreController {
|
|
|
421
421
|
const result = await this.serviceSetting.setPermission(params.entity, body);
|
|
422
422
|
return result;
|
|
423
423
|
}
|
|
424
|
+
|
|
425
|
+
@Basic()
|
|
426
|
+
@Patch("/:entity/import_validate")
|
|
427
|
+
async importValidate(@Param() params: any, @Body() data): Promise<boolean> {
|
|
428
|
+
return this.service.importValidate(params.entity, data);
|
|
429
|
+
}
|
|
424
430
|
}
|
|
@@ -613,6 +613,11 @@ export class CoreService implements OnModuleInit {
|
|
|
613
613
|
const service = await this._getService(entityName);
|
|
614
614
|
return service.searchText(data);
|
|
615
615
|
}
|
|
616
|
+
|
|
617
|
+
public async importValidate(entityName: string, data: any): Promise<any> {
|
|
618
|
+
const service = await this._getService(entityName);
|
|
619
|
+
return service.importValidate(data);
|
|
620
|
+
}
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
@Injectable()
|