feat: 积分商城-供应商-对账-发票2

This commit is contained in:
2026-09-08 13:40:33 +08:00
parent fc5df9c048
commit 3abe4ce9c9
14 changed files with 542 additions and 136 deletions
@@ -30,6 +30,13 @@ export const merchantSupplierListController = withErrorBoundary(async (request:
return toHttpResponse(await merchantService.listSuppliers())
})
export const merchantOrderRepushSplitController = withErrorBoundary(async (request: Request, _context: Context) => {
const methodResponse = guardMethod(request, ['POST'])
if (methodResponse) return methodResponse
return toHttpResponse(await merchantService.repushSplitOrder(await readJson<Pick<MerchantShipInput, 'supplierId' | 'userId' | 'orderId'>>(request)))
})
export const merchantOrderShipController = withErrorBoundary(async (request: Request, _context: Context) => {
const methodResponse = guardMethod(request, ['POST'])
if (methodResponse) return methodResponse
@@ -45,7 +45,7 @@ export const supplierSessionController = withErrorBoundary(async (request: Reque
const body = await readJson<SupplierSessionRequest>(request)
const keyword = String(body.keyword || '')
return toHttpResponse(supplierService.decryptSupplierSession(keyword))
return toHttpResponse(await supplierService.decryptSupplierSession(keyword))
})
export const supplierTokenController = withErrorBoundary(async (request: Request, _context: Context) => {