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 Province

type Province struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Province is a struct that represents the User's address province.

type ProvinceRepository

type ProvinceRepository interface {
	// GetAll returns all Provinces.
	GetAll() ([]Province, error)
	// GetByID returns the Province with the specified ID.
	GetByID(id string) (*Province, error)
}

ProvinceRepository is an interface that provides access to the Province storage.

type ProvinceUsecase

type ProvinceUsecase interface {
	// GetAll returns all Provinces.
	GetAll() ([]Province, error)
	// GetByID returns the Province with the specified ID.
	GetByID(id string) (*Province, error)
}

ProvinceUsecase is an interface that provides business logic for Province.

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