Compare commits

...

3 Commits

Author SHA1 Message Date
cced9311c5 Fixed typo 2025-10-22 18:58:25 +02:00
1f6f990185 Fixed Role Entity field names 2025-10-22 12:33:13 +02:00
95217521f1 Added DTO for Authorization header reading 2025-10-22 11:24:56 +02:00
3 changed files with 10 additions and 4 deletions

5
identity/dto/headers.go Normal file
View File

@@ -0,0 +1,5 @@
package identity
type AuthorizationHeaderDTO struct {
Authorization string `reqHeader:"authorization"`
}

View File

@@ -2,6 +2,7 @@ package identity
type Role struct { type Role struct {
ID string `db:"id" json:"id"` ID string `db:"id" json:"id"`
Roles []byte `db:"roles" json:"roles"` Name string `db:"name" json:"name"`
DisplayName string `db:"display_name" json:"display_name"`
URL string `db:"url" json:"url"` URL string `db:"url" json:"url"`
} }

View File

@@ -4,5 +4,5 @@ type URLAccess struct {
ID string `db:"id" json:"id"` ID string `db:"id" json:"id"`
Roles []string `db:"roles" json:"roles"` Roles []string `db:"roles" json:"roles"`
URL string `db:"url" json:"url"` URL string `db:"url" json:"url"`
Service string `db:"service" json:"serice"` Service string `db:"service" json:"service"`
} }