This commit is contained in:
xiaojunnuo
2024-12-03 00:55:37 +08:00
parent febe87508c
commit 393ea27fa4
5 changed files with 29 additions and 4 deletions
@@ -29,6 +29,12 @@ export class PluginController extends BaseController {
return this.ok(group);
}
@Post('/getDefineByType', { summary: Constants.per.authOnly })
async getDefineByType(@Body('type') type: string) {
const define = await this.service.getDefineByType(type);
return this.ok(define);
}
@Post('/config', { summary: Constants.per.authOnly })
async config(@Body(ALL) body: { id?: number; name?: string; type: string }) {
const config = await this.pluginConfigService.getPluginConfig(body);