2fas-server/internal/common/api/responses.go

18 lines
289 B
Go
Raw Normal View History

2022-12-31 10:22:38 +01:00
package api
type ApiResponse struct {
Code int
Type string
Description string
Message string
}
func NewOk(message string) ApiResponse {
return ApiResponse{
Code: 200,
Type: "OK",
Description: "Everything went ok.",
Message: message,
}
}