test_logic

package
v1.3.2-39 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 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) CheckCorrelationId

func (c *DummyController) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyController) Create

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

func (*DummyController) DeleteById

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

func (*DummyController) GetCommandSet

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

func (*DummyController) GetOneById

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

func (*DummyController) GetPageByFilter

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

func (*DummyController) Update

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

type IDummyController

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

	CheckCorrelationId(correlationId string) (result map[string]string, err error)
}

Jump to

Keyboard shortcuts

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