Compare commits

...

4 Commits

3 changed files with 20 additions and 0 deletions

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

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

7
identity/entity/role.go Normal file
View File

@@ -0,0 +1,7 @@
package identity
type Role struct {
ID string `db:"id" json:"id"`
Roles []byte `db:"roles" json:"roles"`
URL string `db:"url" json:"url"`
}

View 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:"serice"`
}