Files
b2b/app/utils/response/response.go
2026-03-17 10:55:17 +01:00

16 lines
296 B
Go

package response
type Response[T any] struct {
Message string `json:"message"`
Items *T `json:"items"`
Count int `json:"count"`
}
func Make[T any](items *T, count int, message string) Response[T] {
return Response[T]{
Message: message,
Items: items,
Count: count,
}
}