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
import "time"
type HelloBodyRequest struct {
Name string `json:"name" validate:"required"`
}
@ -12,7 +10,7 @@ type UpdateScopesRequest struct {
}
type RefreshTokenRequest struct {
Username string `json:"username"`
RefreshToken string `json:"refreshToken"`
ExpiresAt time.Time `json:"expiresAt"`
Username string `json:"username"`
RefreshToken string `json:"refreshToken"`
//ExpiresAt time.Time `json:"expiresAt"`
}

View File

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