package com.ruoyi.web.controller.api;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.system.dto.TOrderMealDTO;
|
import com.ruoyi.system.dto.TOrderSaleDTO;
|
import com.ruoyi.system.service.TOrderMealService;
|
import com.ruoyi.system.service.TOrderSaleService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
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;
|
|
/**
|
* <p>
|
* 销售订单 前端控制器
|
* </p>
|
*
|
* @author xiaochen
|
* @since 2024-08-14
|
*/
|
@Api(tags = "销售订单")
|
@RestController
|
@RequestMapping("/t-order-sale")
|
public class TOrderSaleController {
|
private final TOrderSaleService orderSaleService;
|
|
@Autowired
|
public TOrderSaleController(TOrderSaleService orderSaleService) {
|
this.orderSaleService = orderSaleService;
|
}
|
/**
|
* 销售下单接口
|
*/
|
@ApiOperation( value = "销售下单接口")
|
@PostMapping(value = "/add")
|
public AjaxResult<String> add(@RequestBody TOrderSaleDTO dto) {
|
orderSaleService.add(dto);
|
return AjaxResult.success();
|
}
|
|
}
|