diff options
Diffstat (limited to 'types/types.go')
-rw-r--r-- | types/types.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/types/types.go b/types/types.go new file mode 100644 index 0000000..d1b1b70 --- /dev/null +++ b/types/types.go @@ -0,0 +1,9 @@ +// Package types include common data structures used in multiple packages. +package types + +type BaseResponse[T any] struct { + Code int `json:"code"` + Message string `json:"message"` + TTL int `json:"ttl"` + Data T `json:"data"` +} |