secret-santa/internal/types/response.go

9 lines
137 B
Go

package types
type JsonResponse[T any] struct {
Data T `json:"data"`
}
type ErrorResponse struct {
Message string `json:"message"`
}