feat: 添加订单管理功能,支持跨租户分页查询,优化订单列表展示及查询条件

This commit is contained in:
2025-12-24 09:30:12 +08:00
parent 3e8a02d549
commit fcbc6bd394
9 changed files with 708 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ func (r *Routes) Register(router fiber.Router) {
Body[dto.LoginForm]("form"),
))
// Register routes for controller: order
r.log.Debugf("Registering route: Get /super/v1/orders -> order.list")
router.Get("/super/v1/orders"[len(r.Path()):], DataFunc1(
r.order.list,
Query[dto.OrderPageFilter]("filter"),
))
r.log.Debugf("Registering route: Get /super/v1/orders/statistics -> order.statistics")
router.Get("/super/v1/orders/statistics"[len(r.Path()):], DataFunc0(
r.order.statistics,