go-cook/internal/domain/requests.go

19 lines
408 B
Go
Raw Normal View History

2024-03-31 17:46:04 -07:00
package domain
2024-04-21 08:59:25 -07:00
import "time"
2024-03-31 17:46:04 -07:00
type HelloBodyRequest struct {
Name string `json:"name" validate:"required"`
2024-04-03 16:09:31 -07:00
}
type UpdateScopesRequest struct {
Username string `json:"username"`
2024-04-03 16:09:31 -07:00
Scopes []string `json:"scopes" validate:"required"`
}
type RefreshTokenRequest struct {
2024-04-21 08:59:25 -07:00
Username string `json:"username"`
RefreshToken string `json:"refreshToken"`
ExpiresAt time.Time `json:"expiresAt"`
}