Create authorization by role
This commit is contained in:
@@ -9,6 +9,7 @@ type Credentials struct {
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password"`
|
||||
Phone string `json:"phone"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type Claims struct {
|
||||
@@ -16,4 +17,4 @@ type Claims struct {
|
||||
Email string `json:"email"`
|
||||
Phone string `json:"phone"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user