fixed update user dto for proper role handling and changed back button in user settings
This commit is contained in:
@@ -23,7 +23,7 @@ type CreateUserDto struct {
|
||||
type UpdateUserDto struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Role string `json:"role,omitempty" binding:"oneof=admin user"`
|
||||
Role string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
func MapUser(u models.User) UserDto {
|
||||
|
||||
Reference in New Issue
Block a user