All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m20s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m32s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 5m28s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m29s
19 lines
332 B
Go
19 lines
332 B
Go
package models
|
|
|
|
type JsonResponse struct {
|
|
Error bool `json:"error,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
}
|
|
|
|
func NewJsonMessageResponse(msg string) JsonResponse {
|
|
return JsonResponse{
|
|
Message: msg,
|
|
}
|
|
}
|
|
|
|
func NewJsonErrorResponse(err error) JsonResponse {
|
|
return JsonResponse{
|
|
Message: err.Error(),
|
|
}
|
|
}
|