package responses

import "github.com/gofiber/fiber/v3"

// Typescript: interface
type SimpleResponse struct {
	Message string `json:"message"`
}

// success wraps a payload in the standard API envelope.
func Success(data any) fiber.Map {
	return fiber.Map{
		"data":  data,
		"error": nil,
	}
}
