mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 12:09:56 +01:00
18 lines
289 B
Go
18 lines
289 B
Go
|
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,
|
||
|
}
|
||
|
}
|