3
0

upd(rbac): update api call response types

This commit is contained in:
Tit Petric
2018-07-23 14:08:39 +02:00
parent f77fb432a6
commit bf67bac351
+3
View File
@@ -3,9 +3,12 @@ package types
type (
User struct {
Username string `json:"username"`
AssignedRoles []string `json:"assignedRoles"`
AuthorizedRoles []string `json:"authorizedRoles"`
}
Session struct {
ID string `json:"session"`
Username string `json:"username"`
Roles []string `json:"roles"`
}