package com.storlead.sales.controller.customer;


import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.dto.customer.OrderFormTransferDTO;
import com.storlead.sales.service.customer.OrderFormTransferService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
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 YPZ
 * @since 2024-06-21
 */
@RestController
@RequestMapping("/order-form-transfer")
@Api(tags = "销售: 订单管理相关接口")
public class OrderFormTransferController {

    @Resource
    private OrderFormTransferService businessTransferService;

    @PostMapping(value = "/transfer")
    @ApiOperation(value = "商机管理查询-转移商机", notes = "商机管理查询-转移商机")
    public Result<?> transfer(@RequestBody OrderFormTransferDTO orderFormTransferDTO) {
        return businessTransferService.transfer(orderFormTransferDTO);
    }
}
