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
|
```go
|
||||||
type RegisterReq struct {
|
type RegisterReq struct {
|
||||||
Username string
|
Username string `json:"username"`
|
||||||
PasswordNew string
|
PasswordNew string `json:"password_new"`
|
||||||
PasswordRepeat string
|
PasswordRepeat string `json:"password_repeat"`
|
||||||
Email string
|
Email string `json:"email"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func register(req RegisterReq) error{
|
func register(req RegisterReq) error{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user