Documentation
¶
Index ¶
- func Register()
- type Helloworld
- type Helloworld2
- type Module
- type Module2
- type Req
- type Rsp
- type Service
- func (s *Service) Create(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) CreateMany(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) Delete(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) DeleteMany(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) Get(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) List(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) Patch(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) PatchMany(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) Update(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- func (s *Service) UpdateMany(ctx *types.ServiceContext, req *Req) (*Rsp, error)
- type Service2
- func (s *Service2) CreateAfter(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) CreateBefore(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) CreateManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) CreateManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) DeleteAfter(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) DeleteBefore(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) DeleteManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) DeleteManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) GetAfter(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) GetBefore(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) ListAfter(ctx *types.ServiceContext, hws *[]*Helloworld2) error
- func (s *Service2) ListBefore(ctx *types.ServiceContext, hws *[]*Helloworld2) error
- func (s *Service2) PatchAfter(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) PatchBefore(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) PatchManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) PatchManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) UpdateAfter(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) UpdateBefore(ctx *types.ServiceContext, hw *Helloworld2) error
- func (s *Service2) UpdateManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
- func (s *Service2) UpdateManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Helloworld2 ¶
type Module2 ¶
type Module2 struct{}
func (*Module2) Param ¶
Param returns the route parameter identifier. returns empty string to use default "id".
func (*Module2) Service ¶
func (*Module2) Service() types.Service[*Helloworld2, *Helloworld2, *Helloworld2]
type Service ¶
type Service struct {
service.Base[*Helloworld, *Req, *Rsp]
}
Service implements the `types.Service` interface.
func (*Service) CreateMany ¶
func (*Service) DeleteMany ¶
func (*Service) UpdateMany ¶
type Service2 ¶
type Service2 struct {
service.Base[*Helloworld2, *Helloworld2, *Helloworld2]
}
func (*Service2) CreateAfter ¶
func (s *Service2) CreateAfter(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) CreateBefore ¶
func (s *Service2) CreateBefore(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) CreateManyAfter ¶
func (s *Service2) CreateManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) CreateManyBefore ¶
func (s *Service2) CreateManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) DeleteAfter ¶
func (s *Service2) DeleteAfter(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) DeleteBefore ¶
func (s *Service2) DeleteBefore(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) DeleteManyAfter ¶
func (s *Service2) DeleteManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) DeleteManyBefore ¶
func (s *Service2) DeleteManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) GetAfter ¶
func (s *Service2) GetAfter(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) GetBefore ¶
func (s *Service2) GetBefore(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) ListAfter ¶
func (s *Service2) ListAfter(ctx *types.ServiceContext, hws *[]*Helloworld2) error
func (*Service2) ListBefore ¶
func (s *Service2) ListBefore(ctx *types.ServiceContext, hws *[]*Helloworld2) error
func (*Service2) PatchAfter ¶
func (s *Service2) PatchAfter(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) PatchBefore ¶
func (s *Service2) PatchBefore(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) PatchManyAfter ¶
func (s *Service2) PatchManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) PatchManyBefore ¶
func (s *Service2) PatchManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) UpdateAfter ¶
func (s *Service2) UpdateAfter(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) UpdateBefore ¶
func (s *Service2) UpdateBefore(ctx *types.ServiceContext, hw *Helloworld2) error
func (*Service2) UpdateManyAfter ¶
func (s *Service2) UpdateManyAfter(ctx *types.ServiceContext, hws ...*Helloworld2) error
func (*Service2) UpdateManyBefore ¶
func (s *Service2) UpdateManyBefore(ctx *types.ServiceContext, hws ...*Helloworld2) error
Click to show internal directories.
Click to hide internal directories.