minor domain updates
This commit is contained in:
parent
d9625e0b7d
commit
29f6dc0bb0
@ -1,4 +1,7 @@
|
||||
package domain
|
||||
|
||||
type UserDto struct {
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Scopes string `json:"scopes"`
|
||||
}
|
||||
|
@ -2,4 +2,9 @@ package domain
|
||||
|
||||
type HelloBodyRequest struct {
|
||||
Name string `json:"name" validate:"required"`
|
||||
}
|
||||
}
|
||||
|
||||
type AddScopeRequest struct {
|
||||
Username string `json:"name"`
|
||||
Scopes []string `json:"scopes" validate:"required"`
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
package domain
|
||||
|
||||
type ErrorResponse struct {
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type HelloWhoResponse struct {
|
||||
|
Loading…
Reference in New Issue
Block a user