service_layer

package
v0.0.0-...-ad9433e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTeamMember

func AddTeamMember(command *domain.AddTeamMember, uow UnitOfWork) error

func CreateTeam

func CreateTeam(command *domain.CreateTeamCommand, uow UnitOfWork) (string, error)

Types

type Repository

type Repository interface {
	Get(uuid string) (*domain.Team, error)
	Add(team *domain.Team) error
	Update(team *domain.Team) error
}

type UnitOfWork

type UnitOfWork interface {
	Teams() Repository
	Begin() error
	Commit() error
	Rollback()
}

Jump to

Keyboard shortcuts

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