fuguohong

Results 5 issues of fuguohong

## Describe the feature Custom type conversion rules to allow different types of conversion example: ``` type User struct { CreateAt time.Time BirthDay time.Time } type Person struct { CreateAt...

* **Node Version**: v14.15.4 * **Egg Version**:x * **Plugin Name**:x * **Plugin Version**:x * **Platform**:windows10 * **Mini Showcase Repository**:x validate能否作为全局配置而不必在每个controller方法上添加装饰器? 另外,获取客户端输入时,例如调用@Body(),如果不传入property,返回的是undefined,能否改为返回整个输入对象?毕竟在controller中绝大部分情况都是要获取整个对象,每次调用都要传入一个All似乎有些多此一举了

我看到您的文档中给出了下面这段例子来说明如何定义rpc server: ```javascript // 3. Implemenation the RPC Interface // Put your implementation code under ${app_root}/app/rpc folder // ${app_root}/app/rpc/ProtoService.js exports.echoObj = async function(req) { return { code: 200, message: 'hello...

我的操作流程: 1. 用刚抓取的tk运行程序,运行一段时间 2. 用网页登陆12306(此时程序配置的tk应当失效了) 3. 查看程序运行状态,一直在正常输出查询结果,无法感知tk失效了 4. 此时结束程序,重新运行run r,才会报错tk失效 tk已经失效,但是程序一直在正常输出,无法感知tk已经失效,如果刷到有票是无法下单的。 可以加入定时校验tk有效性功能,tk失效及时报错。

过滤未知字段是一个很常用且有用的功能啊,前端传参时不一定针对每个接口都pick。如果需要更严格的时候, 存在未知字段就返回错误。这样经过校验的参数都可以放心使用。不然参数经过校验后,还需要去判断存不存在一些未知字段?