Documentation ¶
Index ¶
- type DummyCommandSet
- type DummySchema
- type DummyService
- func (c *DummyService) Create(ctx context.Context, entity tdata.Dummy) (result tdata.Dummy, err error)
- func (c *DummyService) DeleteById(ctx context.Context, id string) (result tdata.Dummy, err error)
- func (c *DummyService) GetCommandSet() *ccomand.CommandSet
- func (c *DummyService) GetOneById(ctx context.Context, id string) (result tdata.Dummy, err error)
- func (c *DummyService) GetPageByFilter(ctx context.Context, filter *cquery.FilterParams, paging *cquery.PagingParams) (*cquery.DataPage[tdata.Dummy], error)
- func (c *DummyService) Update(ctx context.Context, newEntity tdata.Dummy) (result tdata.Dummy, err error)
- type IDummyService
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) DeleteById ¶
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 (*DummyService) GetPageByFilter ¶
func (c *DummyService) GetPageByFilter(ctx context.Context, filter *cquery.FilterParams, paging *cquery.PagingParams) (*cquery.DataPage[tdata.Dummy], 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) }
Click to show internal directories.
Click to hide internal directories.