biz

package
v0.0.0-...-24968f5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT, MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewHouseUseCase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type House

type House struct {
	Id           int64
	Price        float64
	Title        string
	Community    string
	ToiletCount  int32
	KitchenCount int32
	FloorCount   int32
	HallCount    int32
	RoomCount    int32
	Image        string
}

type HouseRepo

type HouseRepo interface {
	ListHouse(ctx context.Context) ([]*House, error)
	CreateHouse(ctx context.Context, house *House) (*House, error)
	GetHouse(ctx context.Context, id int64) (*House, error)
}

type HouseUseCase

type HouseUseCase struct {
	Repo HouseRepo
	// contains filtered or unexported fields
}

func NewHouseUseCase

func NewHouseUseCase(repo HouseRepo, logger log.Logger) *HouseUseCase

Jump to

Keyboard shortcuts

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