You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spiderman/pkg/models/response.go

20 lines
572 B

// Package models defines the data models used throughout the application
package models
// Response represents a standard API response
type Response struct {
Success bool `json:"success"`
Message string `json:"message,omitempty"`
Data interface{} `json:"data,omitempty"`
}
// ErrorResponse represents an error response
type ErrorResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
}
// HealthResponse represents the health check response
type HealthResponse struct {
Status string `json:"status" example:"healthy"`
}