logic

package
v0.0.0-...-adf6cea Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntitiesCommandSet

type EntitiesCommandSet struct {
	ccomand.CommandSet
	// contains filtered or unexported fields
}

func NewEntitiesCommandSet

func NewEntitiesCommandSet(controller IEntitiesController) *EntitiesCommandSet

type EntitiesController

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

func NewEntitiesController

func NewEntitiesController() *EntitiesController

func (*EntitiesController) Configure

func (c *EntitiesController) Configure(config *cconf.ConfigParams)

func (*EntitiesController) CreateEntity

func (c *EntitiesController) CreateEntity(correlationId string, entity *data1.EntityV1) (*data1.EntityV1, error)

func (*EntitiesController) DeleteEntityById

func (c *EntitiesController) DeleteEntityById(correlationId string, entityId string) (*data1.EntityV1, error)

func (*EntitiesController) GetCommandSet

func (c *EntitiesController) GetCommandSet() *ccomand.CommandSet

func (*EntitiesController) GetEntities

func (c *EntitiesController) GetEntities(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*data1.EntityV1DataPage, error)

func (*EntitiesController) GetEntityById

func (c *EntitiesController) GetEntityById(correlationId string, entityId string) (*data1.EntityV1, error)

func (*EntitiesController) GetEntityByName

func (c *EntitiesController) GetEntityByName(correlationId string, name string) (*data1.EntityV1, error)

func (*EntitiesController) SetReferences

func (c *EntitiesController) SetReferences(references cref.IReferences)

func (*EntitiesController) UpdateEntity

func (c *EntitiesController) UpdateEntity(correlationId string, entity *data1.EntityV1) (*data1.EntityV1, error)

type IEntitiesController

type IEntitiesController interface {
	GetEntities(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *data1.EntityV1DataPage, err error)

	GetEntityById(correlationId string, entityId string) (item *data1.EntityV1, err error)

	GetEntityByName(correlationId string, entityId string) (item *data1.EntityV1, err error)

	CreateEntity(correlationId string, entity *data1.EntityV1) (item *data1.EntityV1, err error)

	UpdateEntity(correlationId string, entity *data1.EntityV1) (item *data1.EntityV1, err error)

	DeleteEntityById(correlationId string, entityId string) (item *data1.EntityV1, err error)
}

Jump to

Keyboard shortcuts

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