customer_api_service

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDescription

func SetDescription[T customer.User](service *Service[T]) api_server.ResourceEndpointI

func SetName

func SetName[T customer.User](service *Service[T]) api_server.ResourceEndpointI

Types

type CustomerService

type CustomerService = Service[*customer.Customer]

func NewCustomerService

func NewCustomerService(customers *customer.Manager) *CustomerService

type Endpoint

type Endpoint[T customer.User] struct {
	api_server.ResourceEndpoint
	// contains filtered or unexported fields
}

func (*Endpoint[T]) Init

type Service

type Service[T customer.User] struct {
	*user_service.UserService[T]
	Controller customer.UserNameAndDescriptionController[T]
}

func NewService

func NewService[T customer.User](users user.Users[T], userTypeName ...string) *Service[T]

func NewServiceExtended

func NewServiceExtended[T customer.User](users user.Users[T], setterBuilder func() user.UserFieldsSetter[T], userTypeName ...string) *Service[T]

type SetDescriptionEndpoint

type SetDescriptionEndpoint[T customer.User] struct {
	Endpoint[T]
}

func (*SetDescriptionEndpoint[T]) HandleRequest

func (s *SetDescriptionEndpoint[T]) HandleRequest(request api_server.Request) error

type SetNameEndpoint

type SetNameEndpoint[T customer.User] struct {
	Endpoint[T]
}

func (*SetNameEndpoint[T]) HandleRequest

func (s *SetNameEndpoint[T]) HandleRequest(request api_server.Request) error

type TenancyWithSetters

type TenancyWithSetters interface {
	CustomerFieldSetter() customer.NameAndDescriptionSetter
}

Jump to

Keyboard shortcuts

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