first commit

This commit is contained in:
Adrian Zürcher
2025-10-24 10:31:19 +02:00
commit 4db4262195
17 changed files with 1937 additions and 0 deletions

17
models/jsonResponse.go Normal file
View File

@@ -0,0 +1,17 @@
package models
type JsonResponse struct {
Message string `json:"message,omitempty"`
}
func NewJsonErrorResponse(err error) JsonResponse {
return JsonResponse{
Message: err.Error(),
}
}
func NewJsonMessageResponse(msg string) JsonResponse {
return JsonResponse{
Message: msg,
}
}