mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-07-29 17:36:09 +00:00
优化
This commit is contained in:
parent
43b0e10f6e
commit
fe3ed4510b
@ -1,9 +1,6 @@
|
||||
import {
|
||||
CoolController,
|
||||
BaseController,
|
||||
CoolTag,
|
||||
CoolUrlTag,
|
||||
TagTypes,
|
||||
} from '@cool-midway/core';
|
||||
import { PluginInfoEntity } from '../../entity/info';
|
||||
import { Body, Fields, Files, Inject, Post } from '@midwayjs/core';
|
||||
@ -12,10 +9,6 @@ import { PluginService } from '../../service/info';
|
||||
/**
|
||||
* 插件信息
|
||||
*/
|
||||
@CoolUrlTag({
|
||||
key: TagTypes.IGNORE_TOKEN,
|
||||
value: [],
|
||||
})
|
||||
@CoolController({
|
||||
api: ['add', 'delete', 'update', 'info', 'list', 'page'],
|
||||
entity: PluginInfoEntity,
|
||||
@ -46,7 +39,6 @@ export class AdminPluginInfoController extends BaseController {
|
||||
@Inject()
|
||||
pluginService: PluginService;
|
||||
|
||||
@CoolTag(TagTypes.IGNORE_TOKEN)
|
||||
@Post('/install', { summary: '安装插件' })
|
||||
async install(@Files() files, @Fields() fields) {
|
||||
return this.ok(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user