Skip to content
Snippets Groups Projects
Commit e0274945 authored by Andre Sterba's avatar Andre Sterba Committed by Fabian Seidl
Browse files

Apply suggestions

parent 2ad4a976
No related branches found
No related tags found
1 merge request!287Implement data persisting for user management
Pipeline #100057 passed
...@@ -13,7 +13,7 @@ type UserService interface { ...@@ -13,7 +13,7 @@ type UserService interface {
GetAll() ([]User, error) GetAll() ([]User, error)
} }
//LoadedUser represents a User that was loaded // LoadedUser represents a User that was loaded
type LoadedUser struct { type LoadedUser struct {
ID string `json:"_id" bson:"_id"` ID string `json:"_id" bson:"_id"`
UserName string `json:"username"` UserName string `json:"username"`
...@@ -31,7 +31,7 @@ type RoleService interface { ...@@ -31,7 +31,7 @@ type RoleService interface {
GetAll() ([]Role, error) GetAll() ([]Role, error)
} }
//LoadedRole represents a Role that was loaded // LoadedRole represents a Role that was loaded
type LoadedRole struct { type LoadedRole struct {
ID string `json:"_id" bson:"_id"` ID string `json:"_id" bson:"_id"`
RoleName string `json:"rolename"` RoleName string `json:"rolename"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment