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

This commit is contained in:
2026-09-08 20:17:09 +08:00
parent ff77ba16cc
commit 21646b8797
5 changed files with 66 additions and 3 deletions
@@ -13,6 +13,13 @@ export const merchantInvoiceListController = withErrorBoundary(async request =>
return toHttpResponse(await merchantInvoiceService.list(await readJson<MerchantInvoiceListInput>(request)))
})
export const merchantInvoicePushController = withErrorBoundary(async request => {
const methodResponse = guardMethod(request, ['POST'])
if (methodResponse) return methodResponse
if (!await adminAuthService.findSession(getBearerToken(request))) return toHttpResponse(serviceFail('登录已失效,请重新登录', 401, 'UNAUTHORIZED'))
return toHttpResponse(await merchantInvoiceService.push(await readJson<{ id?: number }>(request)))
})
export const merchantInvoiceFileController = withErrorBoundary(async request => {
const methodResponse = guardMethod(request, ['POST'])
if (methodResponse) return methodResponse