cc-core-cli 1.0.80 → 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
|
@@ -97,7 +97,9 @@ if (+process.env.MONGODB_MAX_POOL_SIZE) {
|
|
|
97
97
|
ip: _.get(req, "ip"),
|
|
98
98
|
hostname: _.get(req, "hostname"),
|
|
99
99
|
body: _.get(req, "body", {}),
|
|
100
|
-
action_profile: _.get(req, "action_profile", {})
|
|
100
|
+
action_profile: _.get(req, "action_profile", {}),
|
|
101
|
+
permisson_entities: _.get(req, "permisson_entities", {}),
|
|
102
|
+
permisson_tab: _.get(req, "permisson_tab", {})
|
|
101
103
|
});
|
|
102
104
|
}
|
|
103
105
|
},
|
|
@@ -117,7 +119,9 @@ if (+process.env.MONGODB_MAX_POOL_SIZE) {
|
|
|
117
119
|
_.get(req, "connection.remoteAddress"),
|
|
118
120
|
hostname: req.hostname,
|
|
119
121
|
body: _.get(req, "body", {}),
|
|
120
|
-
action_profile: _.get(req, "action_profile", {})
|
|
122
|
+
action_profile: _.get(req, "action_profile", {}),
|
|
123
|
+
permisson_entities: _.get(req, "permisson_entities", {}),
|
|
124
|
+
permisson_tab: _.get(req, "permisson_tab", {})
|
|
121
125
|
});
|
|
122
126
|
}
|
|
123
127
|
}
|
|
@@ -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()
|