chore: 修改权限判断字段从summary改成description

This commit is contained in:
xiaojunnuo
2026-03-15 16:20:20 +08:00
parent b88ee33ae4
commit 25e361b9f9
60 changed files with 385 additions and 385 deletions
@@ -11,7 +11,7 @@ export class SysNetTestController extends BaseController {
netTestService: NetTestService;
@Post('/domainResolve', { summary: 'sys:settings:view' })
@Post('/domainResolve', { description: 'sys:settings:view' })
public async domainResolve(@Body(ALL) body: { domain: string }) {
const { domain } = body;
@@ -20,7 +20,7 @@ export class SysNetTestController extends BaseController {
}
// ping
@Post('/ping', { summary: 'sys:settings:view' })
@Post('/ping', { description: 'sys:settings:view' })
public async ping(@Body(ALL) body: { domain: string }) {
const { domain } = body;
@@ -29,7 +29,7 @@ export class SysNetTestController extends BaseController {
}
// telnet
@Post('/telnet', { summary: 'sys:settings:view' })
@Post('/telnet', { description: 'sys:settings:view' })
public async telnet(@Body(ALL) body: { domain: string, port: number }) {
const { domain, port } = body;
@@ -38,7 +38,7 @@ export class SysNetTestController extends BaseController {
}
// telnet
@Post('/serverInfo', { summary: 'sys:settings:view' })
@Post('/serverInfo', { description: 'sys:settings:view' })
public async serverInfo() {
const result = await this.netTestService.serverInfo();