genre

package
v0.0.0-...-808094b Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = messages{
	CreateFailed: "genre_create_failed",
	FetchFailed:  "genre_fetch_failed",
	ParseFailed:  "genre_parse_failed",
	DeleteFailed: "genre_delete_failed",
}

Functions

This section is empty.

Types

type CreateDto

type CreateDto struct {
	Id   uuid.UUID `json:"-" neo4j:"id"`
	Name string    `json:"name" neo4j:"name"`
}

func (*CreateDto) Build

func (dto *CreateDto) Build() map[string]interface{}

type ListDto

type ListDto struct {
	Id   uuid.UUID `json:"id" neo4j:"id"`
	Name string    `json:"name" neo4j:"name"`
}

type Repo

type Repo interface {
	List(ctx context.Context) ([]ListDto, *i18np.Error)
	View(ctx context.Context, id string) (*ListDto, *i18np.Error)
	Create(ctx context.Context, dto CreateDto) (*ListDto, *i18np.Error)
	Delete(ctx context.Context, id string) *i18np.Error
}

func NewRepo

func NewRepo(driver neo4j.DriverWithContext) Repo

Jump to

Keyboard shortcuts

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