models

package
v0.0.0-...-6ffdd29 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnGenericBadResponse

func ReturnGenericBadResponse(c *gin.Context, err string)

func ReturnGenericSuccessResponse

func ReturnGenericSuccessResponse(c *gin.Context, data interface{})

func ReturnGenericSuccessWithMessageResponse

func ReturnGenericSuccessWithMessageResponse(c *gin.Context, data interface{}, message string)

func ReturnGenericSuccessWithNoMessageResponse

func ReturnGenericSuccessWithNoMessageResponse(c *gin.Context)

Types

type Post

type Post struct {
	gorm.Model
	Title string
	Body  string
}

type User

type User struct {
	gorm.Model
	Email    string `gorm:"unique"`
	Password string
	Role     string `gorm:"default:member"`
}

Jump to

Keyboard shortcuts

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