mirror of
https://github.com/certd/certd.git
synced 2026-05-14 20:17:32 +08:00
perf: 商业版支持配置证书申请插件参数
This commit is contained in:
@@ -84,6 +84,15 @@ export class PluginController extends CrudController<PluginService> {
|
||||
const res = await this.pluginConfigService.saveCommPluginConfig(body);
|
||||
return this.ok(res);
|
||||
}
|
||||
@Post('/getPluginByName', { description: 'sys:settings:view' })
|
||||
async getPluginByName(@Body('name') name: string) {
|
||||
const res = await this.pluginConfigService.getPluginConfig({
|
||||
name: name,
|
||||
type: 'builtIn'
|
||||
});
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
@Post('/saveSetting', { description: 'sys:settings:edit' })
|
||||
async saveSetting(@Body(ALL) body: PluginConfig) {
|
||||
const res = await this.pluginConfigService.savePluginConfig(body);
|
||||
|
||||
Reference in New Issue
Block a user