Socialify

Folder ..

Viewing structs.go
24 lines (20 loc) • 592.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package config

type errorMessages struct {
	RouteNotFound                         string
	InvalidRequestBody                    string
	MissingUserRegistrationRequiredFields string
	FailedToHashPassword                  string
	SQLError                              func(err error) string
}

type successMessages struct {
	UserCreatedSuccessfully string
}

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SuccessResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}