features/working-on-scopes #13
@ -1,4 +1,7 @@
|
||||
package domain
|
||||
|
||||
type UserDto struct {
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Scopes string `json:"scopes"`
|
||||
}
|
||||
|
@ -3,3 +3,8 @@ package domain
|
||||
type HelloBodyRequest struct {
|
||||
Name string `json:"name" validate:"required"`
|
||||
}
|
||||
|
||||
type AddScopeRequest struct {
|
||||
Username string `json:"name"`
|
||||
Scopes []string `json:"scopes" validate:"required"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user