package com.iformall.controller.invest;

import com.iformall.annotation.SystemControllerLog;
import com.iformall.common.InvestResultData;
import com.iformall.domain.po.MallUserInfo;
import com.iformall.service.invest.InvestBizService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
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.RestController;

import java.util.Collection;
import java.util.List;


@Slf4j
@RestController
@RequestMapping("invest")
@Api(tags = "招商模块-其它接口")
public class InvestController extends InvestBaseController {

	@Autowired
	private InvestBizService bizService ;

	/**
	 * 招商人员列表
	 */
	@ApiOperation("招商人员列表")
	@SystemControllerLog(description = "招商人员列表")
	@PostMapping("/users")
	public InvestResultData<Collection<MallUserInfo>> userList() {
		return execute(null, p -> bizService.queryUserList());
	}

}
