Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cced9311c5 | |||
| 1f6f990185 | |||
| 95217521f1 | |||
| acd224124e | |||
| 0da1747d35 | |||
| 4972989610 |
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"`
|
||||||
|
}
|
||||||
8
identity/entity/role.go
Normal file
8
identity/entity/role.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package identity
|
||||||
|
|
||||||
|
type Role struct {
|
||||||
|
ID string `db:"id" json:"id"`
|
||||||
|
Name string `db:"name" json:"name"`
|
||||||
|
DisplayName string `db:"display_name" json:"display_name"`
|
||||||
|
URL string `db:"url" json:"url"`
|
||||||
|
}
|
||||||
8
identity/entity/url_access.go
Normal file
8
identity/entity/url_access.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package identity
|
||||||
|
|
||||||
|
type URLAccess struct {
|
||||||
|
ID string `db:"id" json:"id"`
|
||||||
|
Roles []string `db:"roles" json:"roles"`
|
||||||
|
URL string `db:"url" json:"url"`
|
||||||
|
Service string `db:"service" json:"service"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user