go-cook/internal/domain/responses.go

31 lines
533 B
Go
Raw Normal View History

2024-03-31 17:46:04 -07:00
package domain
2024-04-12 15:43:00 -07:00
type LoginResponse struct {
ErrorResponse
Token string `json:"token"`
Type string `json:"type"`
2024-04-12 15:43:00 -07:00
RefreshToken string `json:"refreshToken"`
}
// This /
// /auth/refreshToken
type TokenRefreshResponse struct {
ErrorResponse
}
type BaseResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
}
2024-03-31 17:46:04 -07:00
type ErrorResponse struct {
2024-04-03 16:09:31 -07:00
Success bool `json:"success"`
Message string `json:"message"`
2024-03-31 17:46:04 -07:00
}
type HelloWhoResponse struct {
BaseResponse
2024-03-31 17:46:04 -07:00
Error string `json:"error"`
}