feat: 已实现订单基本逻辑,到完成,却订单售后

This commit is contained in:
2026-07-30 15:55:36 +08:00
parent fb178d304f
commit dcc32b3d8f
34 changed files with 2534 additions and 149 deletions
+24
View File
@@ -4,6 +4,12 @@ import Router from '@koa/router'
import bodyParser from 'koa-bodyparser'
import type { FunctionHandler } from './utils/handler.js'
import { logger } from './utils/logger.js'
import {
addressDefaultController,
addressDeleteController,
addressListController,
addressSaveController
} from './controllers/address.controller.js'
import {
cartAddController,
loginController,
@@ -11,13 +17,20 @@ import {
userInfoController
} from './controllers/basic.controller.js'
import {
afterSaleApplyController,
afterSaleAuditController,
afterSaleListController,
afterSaleLogisticsController,
orderCancelMainController,
orderCancelPaidMainController,
orderCancelSubController,
orderCountController,
orderCreateController,
orderDetailController,
orderListController,
orderPayController,
orderPushEventController,
orderShipController,
supplierOrderInfoController
} from './controllers/order.controller.js'
import { productDetailController, productListController } from './controllers/product.controller.js'
@@ -33,15 +46,26 @@ const router = new Router()
const port = Number(process.env.PORT || 8888)
const handlers: Record<string, FunctionHandler> = {
'address-default': addressDefaultController,
'address-delete': addressDeleteController,
'address-list': addressListController,
'address-save': addressSaveController,
'after-sale-apply': afterSaleApplyController,
'after-sale-audit': afterSaleAuditController,
'after-sale-list': afterSaleListController,
'after-sale-logistics': afterSaleLogisticsController,
'cart-add': cartAddController,
login: loginController,
'order-cancel-main': orderCancelMainController,
'order-cancel-paid-main': orderCancelPaidMainController,
'order-cancel-sub': orderCancelSubController,
'order-count': orderCountController,
'order-create': orderCreateController,
'order-detail': orderDetailController,
'order-list': orderListController,
'order-pay': orderPayController,
'order-push-event': orderPushEventController,
'order-ship': orderShipController,
'product-detail': productDetailController,
'product-list': productListController,
'supplier-debug-tokens': supplierDebugTokensController,