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

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