minor changes to requests and responses
This commit is contained in:
parent
be337b4bb9
commit
9627c51e7a
@ -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"`
|
||||||
}
|
}
|
||||||
@ -14,5 +12,5 @@ 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"`
|
||||||
}
|
}
|
||||||
|
@ -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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user