cc-core-cli 1.0.88 → 1.0.89
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
|
@@ -425,9 +425,14 @@ export class CoreController {
|
|
|
425
425
|
@Basic()
|
|
426
426
|
@Patch("/:entity/import_validate")
|
|
427
427
|
async importValidate(@Param() params: any, @Body() body): Promise<boolean> {
|
|
428
|
-
return this.service.importValidate(
|
|
428
|
+
return this.service.importValidate(
|
|
429
|
+
params.entity,
|
|
430
|
+
body.id,
|
|
429
431
|
body.code,
|
|
432
|
+
body.data,
|
|
433
|
+
body.data_text,
|
|
430
434
|
body.original_data,
|
|
431
|
-
body.filename
|
|
435
|
+
body.filename
|
|
436
|
+
);
|
|
432
437
|
}
|
|
433
438
|
}
|
|
@@ -619,11 +619,19 @@ export class CoreService implements OnModuleInit {
|
|
|
619
619
|
id: string,
|
|
620
620
|
code: string,
|
|
621
621
|
data: any,
|
|
622
|
+
dataText: string,
|
|
622
623
|
originalData,
|
|
623
624
|
filename
|
|
624
625
|
): Promise<any> {
|
|
625
626
|
const service = await this._getService(entityName);
|
|
626
|
-
return service.importValidate(
|
|
627
|
+
return service.importValidate(
|
|
628
|
+
id,
|
|
629
|
+
code,
|
|
630
|
+
data,
|
|
631
|
+
dataText,
|
|
632
|
+
originalData,
|
|
633
|
+
filename
|
|
634
|
+
);
|
|
627
635
|
}
|
|
628
636
|
}
|
|
629
637
|
|