mirror of
https://github.com/certd/certd.git
synced 2026-07-30 17:27:46 +08:00
chore: 修改权限判断字段从summary改成description
This commit is contained in:
@@ -21,7 +21,7 @@ export class CertController extends BaseController {
|
||||
userSettingsService: UserSettingsService;
|
||||
|
||||
|
||||
@Post('/get', { summary: Constants.per.authOnly })
|
||||
@Post('/get', { description: Constants.per.authOnly })
|
||||
async getCert(@Query('id') id: number) {
|
||||
|
||||
const {userId} = await this.getProjectUserIdRead()
|
||||
@@ -46,7 +46,7 @@ export class CertController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
@Post('/readCertDetail', { summary: Constants.per.authOnly })
|
||||
@Post('/readCertDetail', { description: Constants.per.authOnly })
|
||||
async readCertDetail(@Body('crt') crt: string) {
|
||||
if (!crt) {
|
||||
throw new Error('crt is required');
|
||||
|
||||
Reference in New Issue
Block a user