This commit is contained in:
xiaojunnuo
2024-09-29 14:57:20 +08:00
parent 7ee9d915fb
commit 51f29d6093
9 changed files with 45 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ export class AccessController extends CrudController<AccessService> {
}
@Post('/define', { summary: Constants.per.authOnly })
async define(@Query('type') type:string) {
async define(@Query('type') type: string) {
const access = this.service.getDefineByType(type);
return this.ok(access);
}
@@ -63,6 +63,9 @@ export class AccessController extends CrudController<AccessService> {
const list = this.service.getDefineList();
const dict = [];
for (const item of list) {
if (item?.deprecated) {
continue;
}
dict.push({
value: item.name,
label: item.title,