feat: 积分商城-供应商-对账-发票2
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user