mirror of
https://github.com/certd/certd.git
synced 2026-04-15 21:40:53 +08:00
chore: 移除 autowire
This commit is contained in:
@@ -80,7 +80,10 @@ export class AccessController extends CrudController<AccessService> {
|
||||
|
||||
@Post('/accessTypeDict', { summary: Constants.per.authOnly })
|
||||
async getAccessTypeDict() {
|
||||
const list: AccessDefine[] = this.service.getDefineList();
|
||||
let list: AccessDefine[] = this.service.getDefineList();
|
||||
list = list.sort((a,b) => {
|
||||
return (a.order??10) - (b.order??10);
|
||||
});
|
||||
const dict = [];
|
||||
for (const item of list) {
|
||||
dict.push({
|
||||
|
||||
Reference in New Issue
Block a user