From a635fef407da558acccdcdc139cbc543c5e39e67 Mon Sep 17 00:00:00 2001 From: Zeffon Wu Date: Tue, 16 May 2023 10:33:14 +0800 Subject: [PATCH] chore(lite): remove @security in lite-template --- packages/create-koa-web/template-lite/src/app/api/user.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/create-koa-web/template-lite/src/app/api/user.ts b/packages/create-koa-web/template-lite/src/app/api/user.ts index 4c26df7..860af97 100644 --- a/packages/create-koa-web/template-lite/src/app/api/user.ts +++ b/packages/create-koa-web/template-lite/src/app/api/user.ts @@ -6,7 +6,6 @@ import { prefix, query, request, - security, summary, tags, } from 'koa-swagger-decorator' @@ -79,17 +78,10 @@ export default class UserController { global.UnifyResponse.updateSuccess({ code: global.SUCCESS_CODE }) } - /** - * @security([{ api_key: [] }]) - * In Swagger UI, it will be displayed as a lock icon that you can click to view and configure the required API key or OAuth2 token. - * If your API does not require security measures, `@security` can be omitted. - * @param ctx - */ @request('delete', '/{id}') @summary('delete user') @description('example: /user/1') @tag - @security([{ api_key: [] }]) @path({ id: { type: 'number', required: true, default: null, description: 'id' }, })