123456789101112131415161718192021222324252627 |
- package com.futu.course.orders.controller;
- import com.futu.course.orders.domain.Order1;
- import com.futu.course.orders.service.impl.Order1ServiceImpl;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- /**
- * @author "杨旭朋"
- * @ClassName: OrderController
- * @date 2025年05月12日 19:33
- */
- @RestController
- @RequestMapping("order")
- public class OrderController {
- @Autowired
- private Order1ServiceImpl order1Service;
- @PostMapping("OrderList")
- public List<Order1> OrderList(@RequestParam("status") int status) {
- return order1Service.OrderList(status);
- }
- }
|