Documentation
¶
Index ¶
- type BaseSvc
- type CountrySvc
- func (s *CountrySvc) Add(req *domSchema.AddCountryRequest, i identity.Identity) (*domSchema.AddCountryResponse, error)
- func (s *CountrySvc) Delete(req *domSchema.DeleteCountryRequest, i identity.Identity) (*domSchema.DeleteCountryResponse, error)
- func (s *CountrySvc) GetDetail(req *domSchema.GetDetailCountryRequest, i identity.Identity) (*domSchema.GetDetailCountryResponse, error)
- func (s *CountrySvc) ListAll(i identity.Identity) (*domSchema.ListCountryResponse, error)
- func (s *CountrySvc) Update(req *domSchema.UpdateCountryRequest, i identity.Identity) (*domSchema.UpdateCountryResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSvc ¶
type BaseSvc struct {
// contains filtered or unexported fields
}
BaseSvc represent BaseSvc
func (*BaseSvc) SetDBConnectionName ¶
SetDBConnectionName set DBConnectionName
func (*BaseSvc) SetHandler ¶
SetHandler set Handler
type CountrySvc ¶
type CountrySvc struct {
BaseSvc
}
CountrySvc represent CountrySvc
func NewCountrySvc ¶
func NewCountrySvc(h *handler.Handler) (*CountrySvc, error)
NewCountrySvc new CountrySvc
func (*CountrySvc) Add ¶
func (s *CountrySvc) Add(req *domSchema.AddCountryRequest, i identity.Identity) (*domSchema.AddCountryResponse, error)
Add Country
func (*CountrySvc) Delete ¶
func (s *CountrySvc) Delete(req *domSchema.DeleteCountryRequest, i identity.Identity) (*domSchema.DeleteCountryResponse, error)
Delete delete Country
func (*CountrySvc) GetDetail ¶
func (s *CountrySvc) GetDetail(req *domSchema.GetDetailCountryRequest, i identity.Identity) (*domSchema.GetDetailCountryResponse, error)
GetDetail get Detail Country by Code
func (*CountrySvc) ListAll ¶
func (s *CountrySvc) ListAll(i identity.Identity) (*domSchema.ListCountryResponse, error)
ListAll list All Country
func (*CountrySvc) Update ¶
func (s *CountrySvc) Update(req *domSchema.UpdateCountryRequest, i identity.Identity) (*domSchema.UpdateCountryResponse, error)
Update Country
Click to show internal directories.
Click to hide internal directories.