monster

package
v0.0.0-...-2f27ceb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryHandlers

type DeliveryHandlers interface {
	CreateMonsterType() echo.HandlerFunc
	UpdateMonsterType() echo.HandlerFunc
	DeleteMonsterType() echo.HandlerFunc
	ListMonsterType() echo.HandlerFunc
	DetailMonsterType() echo.HandlerFunc
	CreateMonster() echo.HandlerFunc
	UpdateMonster() echo.HandlerFunc
	DeleteMonster() echo.HandlerFunc
	ListMonster() echo.HandlerFunc
	DetailMonster() echo.HandlerFunc
	AddMonsterType() echo.HandlerFunc
}

type MonsterRepository

type MonsterRepository interface {
	CreateMonster(ctx context.Context, monster *domain.Monster) (*domain.Monster, error)
	UpdateMonster(ctx context.Context, monster *domain.MonsterUpdate) (*domain.MonsterUpdate, error)
	DeleteMonster(ctx context.Context, monsterID primitive.ObjectID) error
	FetchMonsters(ctx context.Context, pq *utils.PaginationQuery) (*domain.MonsterList, error)
	AddMonsterType(ctx context.Context, monsterID, monsterTypeID primitive.ObjectID) error
	FindByID(ctx context.Context, monsterID primitive.ObjectID) (*domain.Monster, error)
	FindByName(ctx context.Context, monsterName string) (*domain.Monster, error)
}

type MonsterTypeRepository

type MonsterTypeRepository interface {
	CreateMonsterType(ctx context.Context, monsterType *domain.MonsterType) (*domain.MonsterType, error)
	UpdateMonsterType(ctx context.Context, monsterType *domain.MonsterTypeUpdate) (*domain.MonsterTypeUpdate, error)
	DeleteMonsterType(ctx context.Context, monsterTypeID primitive.ObjectID) error
	FetchMonsterTypes(ctx context.Context, pq *utils.PaginationQuery) (*domain.MonsterTypeList, error)
	FindByID(ctx context.Context, monsterTypeID primitive.ObjectID) (*domain.MonsterType, error)
	FindByName(ctx context.Context, monsterTypeName string) (*domain.MonsterType, error)
}

type MonsterTypeUsecase

type MonsterTypeUsecase interface {
	MonsterTypeCreate(ctx context.Context, monsterType *domain.MonsterType) (*domain.MonsterType, error)
	MonsterTypeUpdate(ctx context.Context, monsterType *domain.MonsterTypeUpdate) (*domain.MonsterTypeUpdate, error)
	MonsterTypeDeletion(ctx context.Context, monsterTypeID primitive.ObjectID) error
	GetMonsterTypeList(ctx context.Context, pq *utils.PaginationQuery) (*domain.MonsterTypeList, error)
	GetByID(ctx context.Context, monsterTypeID primitive.ObjectID) (*domain.MonsterType, error)
}

type MonsterUsecase

type MonsterUsecase interface {
	MonsterCreate(ctx context.Context, monster *domain.Monster) (*domain.Monster, error)
	MonsterUpdate(ctx context.Context, monster *domain.MonsterUpdate) (*domain.MonsterUpdate, error)
	MonsterDeletion(ctx context.Context, monsterID primitive.ObjectID) error
	AttachMonsterType(ctx context.Context, monsterID, monsterTypeID primitive.ObjectID) error
	GetMonsterList(ctx context.Context, pq *utils.PaginationQuery) (*domain.MonsterList, error)
	GetByID(ctx context.Context, monsterID primitive.ObjectID) (*domain.Monster, error)
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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