Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar interface {
// @transactional
Create(c context.Context, dto dto.Bar) (int, error)
Find(c context.Context, id int) (*entity.Bar, error)
}
func NewBarService ¶
func NewBarService(repo repository.Bar) Bar
type Foo ¶
type Foo interface {
// @transactional
Create(c context.Context, dto dto.Foo) (int, error)
Find(c context.Context, id int) (*entity.Foo, error)
// @transactional
FooBara(c context.Context, dto dto.Foo) error
}
func NewFooService ¶
func NewFooService(repo repository.Foo) Foo
type FooBar ¶
type FooBar interface {
// @transactional
Create(c context.Context, foo dto.Foo, bar dto.Bar) (int, int, error)
Find(c context.Context, fooID, barID int) (*entity.Foo, *entity.Bar, error)
}
func NewFooBarService ¶
type FooService ¶
type FooService struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.