repository

package
v0.0.0-...-60c035c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 ModelRepository

type ModelRepository interface {
	GetAll() ([]domain.Model, error)
	GetByID(id string) (domain.Model, error)
	GetByAPIID(apiID string) (domain.Model, error)
	Create(model domain.Model) (string, error)
	Update(model domain.Model) error
	Delete(id string) error
}

ModelRepository Interface

func NewModelRepository

func NewModelRepository(db *gorm.DB) ModelRepository

NewModelRepository ModelRepositoryインターフェイスを表すオブジェクトを作成します

Jump to

Keyboard shortcuts

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