package com.iformall.controller.invest;

import com.iformall.common.InvestResultData;
import com.iformall.service.invest.InvestCustomerService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;


/**
 * 招商模块-客户需求
 *
 * @author
 * @email
 * @date 2019-09-23 18:40:42
 */
@Slf4j
@RestController
@RequestMapping("invest/demand")
@Api(tags = "招商模块-客户需求")
public class InvestDemandController extends InvestBaseController {

	@Autowired
	private InvestCustomerService customerService;

	/**
	 * 删除
	 */
	//@GetMapping("/delete")
	public InvestResultData delete(@RequestBody Long[] ids) {
		return execute(ids, p -> customerService.removeByIds(Arrays.asList(p)));
	}
}
