rider partner
This commit is contained in:
@@ -26,6 +26,18 @@ func RegisterPartnerRoutes(api fiber.Router, f *facade.Facade) {
|
||||
//
|
||||
// Web group only. A rider is onboarded from the merchant's console, not from
|
||||
// a phone, so the mobile group below stays read-only as it was.
|
||||
// Onboarding the COMPANY that supplies riders, as opposed to the riders
|
||||
// themselves. `getpartners` has always existed and nothing could create
|
||||
// one, which is why the five partners live today were inserted by hand —
|
||||
// two of them are still named "Test".
|
||||
//
|
||||
// Web group only, and deliberately not in the mob group below: a partner is
|
||||
// onboarded by the platform from a console, never from a phone and never by
|
||||
// a merchant. A merchant's side of this is being assigned one.
|
||||
partner.Post("/createpartner", f.PartnerController.CreatePartner)
|
||||
partner.Put("/updatepartner", f.PartnerController.UpdatePartner)
|
||||
partner.Get("/getpartnerlocations", f.PartnerController.GetPartnerLocations)
|
||||
|
||||
partner.Post("/createrider", f.PartnerController.CreateRider)
|
||||
partner.Put("/updaterider", f.PartnerController.UpdateRider)
|
||||
partner.Get("/getriderroster", f.PartnerController.GetRiderRoster)
|
||||
|
||||
@@ -29,6 +29,13 @@ func RegisterTenantRoutes(api fiber.Router, f *facade.Facade) {
|
||||
// two was simply not found. A profile screen cannot be built on that.
|
||||
tenant.Get("/gettenantinfo", f.TenantController.GetTenantInfo)
|
||||
|
||||
// Which delivery partner supplies this merchant's riders.
|
||||
//
|
||||
// Its own route rather than a field on updatetenant: `partnerid` is kept
|
||||
// out of the merchant-editable allowlist on purpose, because a merchant
|
||||
// who could set it would move themselves under another partner.
|
||||
tenant.Put("/assignpartner", f.TenantController.AssignPartner)
|
||||
|
||||
// A merchant editing their own business record. The first write path the
|
||||
// `tenants` table has ever had — see UpdateTenantProfile for what may be
|
||||
// set, and what deliberately may not.
|
||||
|
||||
Reference in New Issue
Block a user