wudi

Results 2 issues of wudi

文章用redis 作为缓存,缓存时间为3600s,但是更新文章内容之后,更新后的文章内容并未实时更新到redis,导致获取的数据是更新前的文章内容

![image](https://user-images.githubusercontent.com/24487603/81766316-7c8b4380-9508-11ea-8025-ab91658e9010.png) ![image](https://user-images.githubusercontent.com/24487603/81766395-9f1d5c80-9508-11ea-89ee-c593c7d4702f.png) 可能是我粗心,不知道其他人是否遇到同样的问题,就是在routers/api/v1/article.go的115到121有时候会将Required 或者Min 关键字写成min 变成了小写可能是其他的错误,每次去接口调试的时候报错总是 { "code": 500, "msg": "fail", "data": "" } 所以找错误原因时不是很方便,只知道时服务器内部错误,找到了这个错误的地方,但是想不到是上面的Require 关键字的错误 提出个人建议 可否在pkg/app/form.go的BindAndValid函数中加入个错误提示error, 将错误提示明确一下 如下: ![image](https://user-images.githubusercontent.com/24487603/81767352-c412cf00-950a-11ea-8bbb-d63458219fac.png) ![image](https://user-images.githubusercontent.com/24487603/81766969-df310f00-9509-11ea-9ee1-67cbb0e4d382.png) 有关键字或者其他错误返回结果更明确 { "code": 500, "msg": "fail", "data": "doesn't...