diff --git a/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/shop/AdminOrderController.java b/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/shop/AdminOrderController.java index 197d79c..14ed2f2 100644 --- a/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/shop/AdminOrderController.java +++ b/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/shop/AdminOrderController.java @@ -6,9 +6,7 @@ import com.wayn.common.core.domain.shop.Order; import com.wayn.common.core.service.shop.IAdminOrderService; import com.wayn.common.util.R; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @RestController @@ -24,5 +22,9 @@ public class AdminOrderController extends BaseController { return R.success().add("page", iAdminOrderService.selectListPage(page, order)); } + @DeleteMapping("{orderId}") + public R deleteOrder(@PathVariable Long orderId) { + return R.result(iAdminOrderService.removeById(orderId)); + } }