优化插件排序

This commit is contained in:
cool 2024-02-21 16:16:50 +08:00
parent c04a9577af
commit 9eca93e801
2 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,9 @@ import { PluginService } from '../../service/info';
'a.createTime',
'a.updateTime',
],
addOrderBy: {
id: 'DESC',
},
},
})
export class AdminPluginInfoController extends BaseController {

View File

@ -50,6 +50,15 @@ export class PluginService extends BaseService {
await this.pluginCenterService.init();
}
/**
*
* @param ids
*/
async delete(ids: any) {
await this.pluginInfoEntity.delete(ids);
await this.reInit();
}
/**
*
* @param param