package com.futu.course.orders.controller; import com.futu.course.common.entity.R; import com.futu.course.orders.dto.OrdersDto; import com.futu.course.orders.service.Order1Service; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @RestController @RequestMapping("/order1") public class Order1Controller { @Resource private Order1Service order1Service; // 添加订单 @PostMapping("/addorder1") public R addorder1(@RequestBody OrdersDto ordersDto){ return order1Service.AddOrder1(ordersDto); } }