This commit is contained in:
xiaojunnuo
2025-03-11 23:11:24 +08:00
parent 5b8d5dd975
commit f07724372d
9 changed files with 90 additions and 22 deletions

View File

@@ -95,4 +95,12 @@ export class CertInfoController extends CrudController<CertInfoService> {
return this.ok(res);
}
@Post('/getCert', { summary: Constants.per.authOnly })
async getCert(@Query('id') id: number) {
await this.service.checkUserId(id, this.getUserId());
const certInfoEntity = await this.service.info(id);
const certInfo = JSON.parse(certInfoEntity.certInfo);
return this.ok(certInfo);
}
}