Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改通知信息会报“参数错误” #51

Open
iyzrj opened this issue Nov 23, 2020 · 0 comments
Open

修改通知信息会报“参数错误” #51

iyzrj opened this issue Nov 23, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@iyzrj
Copy link

iyzrj commented Nov 23, 2020

What Version Of crocodile you using

1.1.7

Describe your issue

在个人中心模块,我添加通知的钉钉号,会报参数错误,调用的具体接口是/api/v1/user/info,请求的具体参数:
{"id":"1112222","email":"","wechat":"","dingphone":"188xxxxxxxx","slack":"","telegram":"","password":"","remark":""}
报错日志:

2020-11-23T11:38:55.493+0800    error   user/user.go:170    ShouldBindJSON failed   {"error": "Key: 'ChangeUserSelf.Name' Error:Field validation for 'Name' failed on the 'required' tag"}

在有uid的情况下,name应该是非必须项,所以应该去掉:
image

@iyzrj iyzrj added the bug Something isn't working label Nov 23, 2020
@iyzrj iyzrj changed the title 修改通知信息不报“参数错误” 修改通知信息会报“参数错误” Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants