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
@@ -24,7 +24,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return this.service;
}
@Post("/page", { summary: Constants.per.authOnly })
@Post("/page", { description: Constants.per.authOnly })
async page(@Body(ALL) body: any) {
const {projectId} = await this.getProjectUserIdRead();
body.query = body.query ?? {};
@@ -32,7 +32,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return await super.page(body);
}
@Post("/list", { summary: Constants.per.authOnly })
@Post("/list", { description: Constants.per.authOnly })
async list(@Body(ALL) body: any) {
const {projectId} = await this.getProjectUserIdRead();
body.query = body.query ?? {};
@@ -40,7 +40,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return super.list(body);
}
@Post("/add", { summary: Constants.per.authOnly })
@Post("/add", { description: Constants.per.authOnly })
async add(@Body(ALL) bean: any) {
const def: any = {
isDefault: false,
@@ -56,7 +56,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return super.add(bean);
}
@Post("/update", { summary: Constants.per.authOnly })
@Post("/update", { description: Constants.per.authOnly })
async update(@Body(ALL) bean: any) {
if (!bean.id) {
throw new Error("id is required");
@@ -75,7 +75,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return this.ok(res);
}
@Post("/info", { summary: Constants.per.authOnly })
@Post("/info", { description: Constants.per.authOnly })
async info(@Query("id") id: number) {
if (!id) {
throw new Error("id is required");
@@ -88,7 +88,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return super.info(id);
}
@Post("/delete", { summary: Constants.per.authOnly })
@Post("/delete", { description: Constants.per.authOnly })
async delete(@Query("id") id: number) {
if (!id) {
throw new Error("id is required");
@@ -101,7 +101,7 @@ export class ProjectMemberController extends CrudController<ProjectMemberEntity>
return super.delete(id);
}
@Post("/deleteByIds", { summary: Constants.per.authOnly })
@Post("/deleteByIds", { description: Constants.per.authOnly })
async deleteByIds(@Body("ids") ids: number[]) {
for (const id of ids) {
if (!id) {