go-cook/api/domain/requests.go

11 lines
217 B
Go

package domain
type HelloBodyRequest struct {
Name string `json:"name" validate:"required"`
}
type AddScopeRequest struct {
Username string `json:"name"`
Scopes []string `json:"scopes" validate:"required"`
}