Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cced9311c5 | |||
| 1f6f990185 | |||
| 95217521f1 |
5
identity/dto/headers.go
Normal file
5
identity/dto/headers.go
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package identity
|
||||||
|
|
||||||
|
type AuthorizationHeaderDTO struct {
|
||||||
|
Authorization string `reqHeader:"authorization"`
|
||||||
|
}
|
||||||
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user