service

package
v0.0.0-...-1d4a79d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompanyService

type CompanyService struct {
	// contains filtered or unexported fields
}

func NewCompanyService

func NewCompanyService(eventPublisher domain.EventPublisher, eventStore domain.EventStore) *CompanyService

func (*CompanyService) ChangeCompanyName

func (c *CompanyService) ChangeCompanyName(id string, newName string) (err error, updatedCompany *domain.Company)

func (*CompanyService) CreateCompany

func (c *CompanyService) CreateCompany(name string) (err error, newCompany *domain.Company)

Jump to

Keyboard shortcuts

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