mirror of
https://github.com/certd/certd.git
synced 2026-07-23 20:17:41 +08:00
chore: 修改权限判断字段从summary改成description
This commit is contained in:
@@ -21,7 +21,7 @@ export class MineController extends BaseController {
|
||||
passkeyService: PasskeyService;
|
||||
|
||||
|
||||
@Post('/info', { summary: Constants.per.authOnly })
|
||||
@Post('/info', { description: Constants.per.authOnly })
|
||||
public async info() {
|
||||
const userId = this.getUserId();
|
||||
const user = await this.userService.info(userId);
|
||||
@@ -35,14 +35,14 @@ export class MineController extends BaseController {
|
||||
return this.ok(user);
|
||||
}
|
||||
|
||||
@Post('/changePassword', { summary: Constants.per.authOnly })
|
||||
@Post('/changePassword', { description: Constants.per.authOnly })
|
||||
public async changePassword(@Body(ALL) body: any) {
|
||||
const userId = this.getUserId();
|
||||
await this.userService.changePassword(userId, body);
|
||||
return this.ok({});
|
||||
}
|
||||
|
||||
@Post('/updateProfile', { summary: Constants.per.authOnly })
|
||||
@Post('/updateProfile', { description: Constants.per.authOnly })
|
||||
public async updateProfile(@Body(ALL) body: any) {
|
||||
const userId = this.getUserId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user