mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
update validator
This commit is contained in:
parent
53eeb7e5d5
commit
305371367f
@ -8,10 +8,10 @@
|
||||
|
||||
```go
|
||||
type RegisterReq struct {
|
||||
Username string
|
||||
PasswordNew string
|
||||
PasswordRepeat string
|
||||
Email string
|
||||
Username string `json:"username"`
|
||||
PasswordNew string `json:"password_new"`
|
||||
PasswordRepeat string `json:"password_repeat"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
func register(req RegisterReq) error{
|
||||
|
Loading…
x
Reference in New Issue
Block a user