models

package
v0.0.0-...-e3ece06 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROD string = "release"
	DEV  string = "debug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Guitar

type Guitar struct {
	Id    int64  `json:"Id" bun:"Id"`
	Brand string `json:"brand" binding:"required" bun:"Brand"`
	Model string `json:"model" binding:"required" bun:"Model"`
}

type GuitarRepository

type GuitarRepository interface {
	FindAll() (*[]Guitar, error)
	Save(guitar *Guitar) error
}

type GuitarService

type GuitarService interface {
	CreateGuitar(guitar *Guitar) (*Guitar, error)
	GetGuitars() (*[]Guitar, error)
}

Jump to

Keyboard shortcuts

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