chore: 修改权限判断字段从summary改成description

This commit is contained in:
xiaojunnuo
2026-03-15 16:20:20 +08:00
parent b88ee33ae4
commit 25e361b9f9
60 changed files with 385 additions and 385 deletions
@@ -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();