rider partner

This commit is contained in:
2026-09-09 15:44:27 +05:30
parent 62a441d798
commit e7577fe0cf
11 changed files with 812 additions and 3 deletions

View File

@@ -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)