Create authorization by role

This commit is contained in:
valitovgaziz
2024-08-25 06:07:48 +05:00
parent 0e50f3826f
commit 1f967a28f7
4 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -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"`
}
}