feat: 订单售后
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
afterSaleService,
|
||||
type AfterSaleApplyInput,
|
||||
type AfterSaleAuditInput,
|
||||
type AfterSaleDetailInput,
|
||||
type AfterSaleListInput,
|
||||
type AfterSaleLogisticsInput
|
||||
} from '../services/after-sale.service.js'
|
||||
@@ -99,6 +100,13 @@ export const afterSaleListController = withErrorBoundary(async (request: Request
|
||||
return toHttpResponse(await afterSaleService.list(await readJson<AfterSaleListInput>(request)))
|
||||
})
|
||||
|
||||
export const afterSaleDetailController = withErrorBoundary(async (request: Request, _context: Context) => {
|
||||
const methodResponse = guardMethod(request, ['POST'])
|
||||
if (methodResponse) return methodResponse
|
||||
|
||||
return toHttpResponse(await afterSaleService.detail(await readJson<AfterSaleDetailInput>(request)))
|
||||
})
|
||||
|
||||
export const afterSaleAuditController = withErrorBoundary(async (request: Request, _context: Context) => {
|
||||
const methodResponse = guardMethod(request, ['POST'])
|
||||
if (methodResponse) return methodResponse
|
||||
|
||||
Reference in New Issue
Block a user