models

package
v0.0.0-...-b696ed4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestSwaggerResp

type BadRequestSwaggerResp struct {
	Code    int         `json:"code" example:"400"`
	Status  string      `json:"status" example:"Bad Request"`
	Message string      `json:"message" example:"Wrong or Unexpected Request"`
	Data    interface{} `json:"data"`
	Errors  []string    `json:"errors" example:"{field} is required"`
}

type InternalServerErrorSwaggerResp

type InternalServerErrorSwaggerResp struct {
	Code    int         `json:"code" example:"500"`
	Status  string      `json:"status" example:"Internal Server Error"`
	Message string      `json:"message" example:"Unable to Handle This Request"`
	Data    interface{} `json:"data"`
	Errors  interface{} `json:"errors"`
}

type NotFoundSwaggerResp

type NotFoundSwaggerResp struct {
	Code    int         `json:"code" example:"404"`
	Status  string      `json:"status" example:"Not Found"`
	Message string      `json:"message" example:"Request Not Found"`
	Data    interface{} `json:"data"`
	Errors  interface{} `json:"errors"`
}

type StandardResponse

type StandardResponse struct {
	Code    int         `json:"code"`
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
	Error   interface{} `json:"error"`
}

type StandardResponseReq

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

type SuccessSwaggerResp

type SuccessSwaggerResp struct {
	Code    int         `json:"code" example:"200"`
	Status  string      `json:"status" example:"OK"`
	Message string      `json:"message" example:"Succeed"`
	Data    interface{} `json:"data"`
	Meta    interface{} `json:"meta"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL