domain

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

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 0 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 {
	ID         string `json:"id"`
	ProvinceID string `json:"province_id"`
	Name       string `json:"name"`
}

City is a struct that represents the User's address city.

type CityRepository

type CityRepository interface {
	// GetAll returns all Cities.
	GetAll(provinceID string) ([]City, error)
	// GetByID returns the City with the specified ID.
	GetByID(id string) (*City, error)
}

CityRepository is an interface that provides access to the City storage.

type CityUsecase

type CityUsecase interface {
	// GetAll returns all Cities.
	GetAll(provinceID string) ([]City, error)
	// GetByID returns the City with the specified ID.
	GetByID(provinceID, cityID string) (*City, error)
}

CityUsecase is an interface that provides business logic for City.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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