test_logic

package
v1.1.0-4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 9 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 IDummyService) *DummyCommandSet

type DummySchema

type DummySchema struct {
	cvalid.ObjectSchema
}

func NewDummySchema

func NewDummySchema() *DummySchema

type DummyService

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

func NewDummyService

func NewDummyService() *DummyService

func (*DummyService) Create

func (c *DummyService) Create(ctx context.Context, entity tdata.Dummy) (result tdata.Dummy, err error)

func (*DummyService) DeleteById

func (c *DummyService) DeleteById(ctx context.Context, id string) (result tdata.Dummy, err error)

func (*DummyService) GetCommandSet

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

GetCommandSet gets a command set with all supported commands and events.

see CommandSet
Returns: *CommandSet a command set with commands and events.

func (*DummyService) GetOneById

func (c *DummyService) GetOneById(ctx context.Context, id string) (result tdata.Dummy, err error)

func (*DummyService) GetPageByFilter

func (c *DummyService) GetPageByFilter(ctx context.Context, filter *cquery.FilterParams, paging *cquery.PagingParams) (*cquery.DataPage[tdata.Dummy], error)

func (*DummyService) Update

func (c *DummyService) Update(ctx context.Context, newEntity tdata.Dummy) (result tdata.Dummy, err error)

type IDummyService

type IDummyService interface {
	GetPageByFilter(ctx context.Context, filter *cquery.FilterParams, paging *cquery.PagingParams) (result *cquery.DataPage[tdata.Dummy], err error)
	GetOneById(ctx context.Context, id string) (result tdata.Dummy, err error)
	Create(ctx context.Context, entity tdata.Dummy) (result tdata.Dummy, err error)
	Update(ctx context.Context, entity tdata.Dummy) (result tdata.Dummy, err error)
	DeleteById(ctx context.Context, id string) (result tdata.Dummy, err error)
}

Jump to

Keyboard shortcuts

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