💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[TOC] ### Koa2 验证器 * [ ] 文档:https://www.npmjs.com/package/koa-parameter * [ ] 安装:npm install koa-parameter --save * [ ] 使用: 1. 注册插件 ![](https://box.kancloud.cn/1f11331131f751c2a5e2306285db6641_477x348.png) 2. 验证Http请求参数 ``` ctx.verifyParams({ username: {type: 'string', required: true}, password: {type: 'string', required: true} }) ```