example_logic

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyCommandSet

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

func NewDummyCommandSet

func NewDummyCommandSet(controller IDummyController) *DummyCommandSet

type DummyController

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

func NewDummyController

func NewDummyController() *DummyController

func (*DummyController) Create

func (c *DummyController) Create(correlationId string, entity data.Dummy) (result *data.Dummy, err error)

func (*DummyController) DeleteById

func (c *DummyController) DeleteById(correlationId string, id string) (result *data.Dummy, err error)

func (*DummyController) GetCommandSet

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

func (*DummyController) GetOneById

func (c *DummyController) GetOneById(correlationId string, id string) (result *data.Dummy, err error)

func (*DummyController) GetPageByFilter

func (c *DummyController) GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (items *data.DummyDataPage, err error)

func (*DummyController) Update

func (c *DummyController) Update(correlationId string, newEntity data.Dummy) (result *data.Dummy, err error)

type IDummyController

type IDummyController interface {
	GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *data.DummyDataPage, err error)
	GetOneById(correlationId string, id string) (result *data.Dummy, err error)
	Create(correlationId string, entity data.Dummy) (result *data.Dummy, err error)
	Update(correlationId string, entity data.Dummy) (result *data.Dummy, err error)
	DeleteById(correlationId string, id string) (result *data.Dummy, err error)
}

Jump to

Keyboard shortcuts

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