rider partner
This commit is contained in:
@@ -16,6 +16,7 @@ type TenantService interface {
|
||||
GetTenantLocations(tid int) ([]models.Tenantlocations, error)
|
||||
GetTenantSlot() (models.Tenantslot, error)
|
||||
CreateTenantCustomer(req models.CreateTenantCustomerRequest) (*models.Tenantcustomer, error)
|
||||
AssignPartner(tenantID, partnerID int) error
|
||||
GetCustomerTenants(customerID int, categoryID int, tenantFlag int) (*models.CustomerTenantResponse, error)
|
||||
GetTenantPricing(tid, aid int) (models.Tenantpricing, error)
|
||||
UpdateLocation(input models.Tenantlocations) error
|
||||
@@ -259,3 +260,11 @@ func (s *tenantService) UpdateOwnProfile(userID, tenantID int, fields map[string
|
||||
}
|
||||
return s.repo.UpdateOwnProfile(userID, tenantID, clean)
|
||||
}
|
||||
|
||||
// AssignPartner records which delivery partner supplies a merchant's riders.
|
||||
//
|
||||
// Not part of UpdateTenantProfile: that endpoint is the merchant's own, and
|
||||
// which partner they sit under is the platform's call. See the repository.
|
||||
func (s *tenantService) AssignPartner(tenantID, partnerID int) error {
|
||||
return s.repo.AssignPartner(tenantID, partnerID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user