From fc5ab3572ef6bd21faf8dc0e9ae61397d4f4dbfd Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 10 Jun 2022 10:16:18 +0800 Subject: [PATCH] fix word --- internal/demo/register/set_password.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/demo/register/set_password.go b/internal/demo/register/set_password.go index fbcc30c44..9151f9eda 100644 --- a/internal/demo/register/set_password.go +++ b/internal/demo/register/set_password.go @@ -16,9 +16,9 @@ import ( type ParamsSetPassword struct { Email string `json:"email"` - Nickname string `json:"name"` + Nickname string `json:"name" binding:"required"` PhoneNumber string `json:"phoneNumber"` - Password string `json:"password"` + Password string `json:"password" binding:"required"` VerificationCode string `json:"verificationCode"` Platform int32 `json:"platform" binding:"required,min=1,max=7"` Ex string `json:"ex"`