Base Project
This commit is contained in:
13
internal/models/requests/auth_request.go
Normal file
13
internal/models/requests/auth_request.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package requests
|
||||
|
||||
type BodyRegisterRequest struct {
|
||||
Username string `json:"username" binding:"required"`
|
||||
Email string `json:"email" binding:"required,email"`
|
||||
FullName string `json:"fullName"`
|
||||
Password string `json:"password" binding:"required,min=8"`
|
||||
}
|
||||
|
||||
type BodyLoginRequest struct {
|
||||
Username string `json:"username" binding:"required"`
|
||||
Password string `json:"password" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user