1.0.2 • Published 5 years ago

egg-shell-decorators-v2 v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

此项目拷贝自egg-shell-decorators(http://super2god.github.io/egg-shell-decorators) 由于公司token请求头是自定义的,而tokenOpt只能默认是Authorization不满足需求,在此基础上新增功能 1.支持security关于ApiKeyAuth的配置 在 SwaggerOpt 添加securityDefinitions配置 例如:"securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-Auth-Token" } } controller使用@Security标签引用 例如:@Security('ApiKeyAuth')

2.添加deprecated标签,标识接口废弃 controller使用@Deprecated标签引用 例如:@Deprecated