Documentation ¶
Index ¶
- type OwnerService
- type OwnerServiceImpl
- func (a *OwnerServiceImpl) GetDrivers(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
- func (a *OwnerServiceImpl) GetOwnerStatusVerified(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
- func (a *OwnerServiceImpl) GetRatings(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
- func (a *OwnerServiceImpl) RegisterBusinessOwner(c context.Context, data dto.OwnerRegistrationReq) (res interface{}, err *helper.ErrorStruct)
- func (a *OwnerServiceImpl) RegisterNewDriver(c context.Context, data dto.DriverRegistrationReq) (res interface{}, err *helper.ErrorStruct)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OwnerService ¶
type OwnerService interface { RegisterBusinessOwner(c context.Context, data dto.OwnerRegistrationReq) (res interface{}, err *helper.ErrorStruct) GetRatings(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct) RegisterNewDriver(c context.Context, data dto.DriverRegistrationReq) (res interface{}, err *helper.ErrorStruct) GetDrivers(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct) GetOwnerStatusVerified(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct) }
func NewOwnerService ¶
func NewOwnerService(OwnerRepo repository.OwnerRepo) OwnerService
type OwnerServiceImpl ¶
type OwnerServiceImpl struct {
OwnerRepo repository.OwnerRepo
}
func (*OwnerServiceImpl) GetDrivers ¶
func (a *OwnerServiceImpl) GetDrivers(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
func (*OwnerServiceImpl) GetOwnerStatusVerified ¶
func (a *OwnerServiceImpl) GetOwnerStatusVerified(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
func (*OwnerServiceImpl) GetRatings ¶
func (a *OwnerServiceImpl) GetRatings(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
func (*OwnerServiceImpl) RegisterBusinessOwner ¶
func (a *OwnerServiceImpl) RegisterBusinessOwner(c context.Context, data dto.OwnerRegistrationReq) (res interface{}, err *helper.ErrorStruct)
func (*OwnerServiceImpl) RegisterNewDriver ¶
func (a *OwnerServiceImpl) RegisterNewDriver(c context.Context, data dto.DriverRegistrationReq) (res interface{}, err *helper.ErrorStruct)
Click to show internal directories.
Click to hide internal directories.