feat: fix stock check and add admin order status update
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
Build and Push Docker Image / deploy (push) Successful in 10s

This commit is contained in:
nuyue
2026-07-17 05:26:30 +08:00
parent 5669782e2d
commit 9107affb85
4 changed files with 100 additions and 7 deletions
+2 -1
View File
@@ -188,9 +188,10 @@ func SetupRoutes(r *gin.Engine) {
adminOrders := admin.Group("/orders")
{
adminOrders.GET("", orderHandler.AdminList)
adminOrders.GET("/:id", orderHandler.AdminGetByID)
adminOrders.GET("/:id", orderHandler.AdminGetByID)
adminOrders.GET("/export", orderHandler.Export)
adminOrders.PUT("/:id/refund", orderHandler.ProcessRefund)
adminOrders.PUT("/:id/status", orderHandler.AdminUpdateStatus)
}
adminLotteries := admin.Group("/lotteries")