models

package
v0.0.0-...-b8f4ccc Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pet

type Pet struct {
	gorm.Model
	Name   string
	Status string `gorm:"type:enum('available','pending','sold')"`
}

func PetModelToDatabaseObject

func PetModelToDatabaseObject(petModel api.PetRequest) *Pet

func (Pet) TableName

func (Pet) TableName() string

func (*Pet) ToModel

func (db *Pet) ToModel() *api.Pet

Jump to

Keyboard shortcuts

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