minor changes to requests and responses

This commit is contained in:
James Tombleson 2024-04-21 10:29:17 -07:00
parent be337b4bb9
commit 9627c51e7a
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,5 @@
package domain package domain
import "time"
type HelloBodyRequest struct { type HelloBodyRequest struct {
Name string `json:"name" validate:"required"` Name string `json:"name" validate:"required"`
} }
@ -12,7 +10,7 @@ type UpdateScopesRequest struct {
} }
type RefreshTokenRequest struct { type RefreshTokenRequest struct {
Username string `json:"username"` Username string `json:"username"`
RefreshToken string `json:"refreshToken"` RefreshToken string `json:"refreshToken"`
ExpiresAt time.Time `json:"expiresAt"` //ExpiresAt time.Time `json:"expiresAt"`
} }

View File

@ -1,7 +1,7 @@
package domain package domain
type LoginResponse struct { type LoginResponse struct {
ErrorResponse BaseResponse
Token string `json:"token"` Token string `json:"token"`
Type string `json:"type"` Type string `json:"type"`
RefreshToken string `json:"refreshToken"` RefreshToken string `json:"refreshToken"`