API版本化:迁移订单刷新与批量操作入口

This commit is contained in:
Christ committed 2026-08-14 17:21:51 +08:00
1 parent 50a135fc29
commit bc97f35fda
8 files changed
+148 -11

No files matched your search

@@ -14,5 +14,9 @@ func (s *Server) mountVersionedOrders(r chi.Router) {
r.Get("/api/v1/orders", s.listOrders)
r.Get("/api/v1/orders/{order_id}", s.getOrder)
r.Put("/api/v1/orders/{order_id}", s.updateOrder)
r.Post("/api/v1/orders/refresh", s.refreshOrders)
r.Post("/api/v1/orders/manual-ship", s.manualShipOrders)
r.Post("/api/v1/orders/import", s.importOrders)
r.Post("/api/v1/orders/{order_id}/refresh", s.refreshSingleOrder)
})
}