handler

package
v0.0.0-...-4b66723 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	UseCase usecase.City
	Mapper  appmapper.CruderMapper[entity.City, model.CityResponse]
}

func NewCity

func NewCity(useCase *usecase.City) *City

func (*City) GetById

func (c *City) GetById(ctx *fiber.Ctx) error

func (*City) GetFirstById

func (c *City) GetFirstById(ctx *fiber.Ctx) error

func (*City) List

func (c *City) List(ctx *fiber.Ctx) error

type District

type District struct {
	UseCase usecase.District
	Mapper  appmapper.CruderMapper[entity.District, model.DistrictResponse]
}

func NewDistrict

func NewDistrict(useCase *usecase.District) *District

func (*District) GetById

func (c *District) GetById(ctx *fiber.Ctx) error

func (*District) GetFirstById

func (c *District) GetFirstById(ctx *fiber.Ctx) error

func (*District) List

func (c *District) List(ctx *fiber.Ctx) error

type Province

type Province struct {
	CrudHandler *apphandler.Crud[entity.Province, model.ProvinceResponse]
}

func NewProvince

func NewProvince(useCase appusecase.CruderUseCase[entity.Province]) *Province

type Village

type Village struct {
	UseCase usecase.Village
	Mapper  appmapper.CruderMapper[entity.Village, model.VillageResponse]
}

func NewVillage

func NewVillage(useCase *usecase.Village) *Village

func (*Village) GetById

func (c *Village) GetById(ctx *fiber.Ctx) error

func (*Village) GetFirstById

func (c *Village) GetFirstById(ctx *fiber.Ctx) error

func (*Village) List

func (c *Village) List(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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