usecase

package
v0.0.0-...-b6cb40f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New ceates a new ProvinceUseCase instance

Types

type ProvinceUseCase

type ProvinceUseCase struct {
	// contains filtered or unexported fields
}

ProvinceUsecase is a struct that implements PronvinceUsecase interface

func (*ProvinceUseCase) GetAll

func (pu *ProvinceUseCase) GetAll() ([]domain.Province, error)

GetAll returns all Provinces

func (*ProvinceUseCase) GetByID

func (pu *ProvinceUseCase) GetByID(id string) (*domain.Province, error)

GetByID returns the Province with the specified ID.

Jump to

Keyboard shortcuts

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