views

package
v0.0.0-...-a2da56e Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONResponse

func JSONResponse(c *gin.Context, body interface{}, status int)

func JSONResponseBadRequest

func JSONResponseBadRequest(c *gin.Context, message string)

func JSONResponseCreated

func JSONResponseCreated(c *gin.Context, body interface{})

func JSONResponseError

func JSONResponseError(c *gin.Context, err error)

func JSONResponseNoContent

func JSONResponseNoContent(c *gin.Context)

func JSONResponseOK

func JSONResponseOK(c *gin.Context, body interface{})

Types

type EntityURI

type EntityURI struct {
	ID uint `uri:"id" binding:"required"`
}

type Service

type Service interface {
	Register(e *gin.Engine, db *gorm.DB)
}

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func (*UserService) Register

func (u *UserService) Register(e *gin.Engine, db *gorm.DB)

Jump to

Keyboard shortcuts

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