package com.ym.mec.student.controller;

import com.ym.mec.biz.service.StudentWithdrawService;
import com.ym.mec.common.controller.BaseController;
import com.ym.mec.common.exception.BizException;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("studentWithdraw")
@Api(tags = "提现服务")
public class WithdrawController extends BaseController {

	@Autowired
	private StudentWithdrawService studentWithdrawService;

	@ApiOperation(value = "新增提现申请")
	@PostMapping("/add")
	public Object add(String bankCardNo, BigDecimal amount) throws Exception {
		throw new BizException("此功能暂未开放");
//		studentWithdrawService.apply(bankCardNo, amount);
//		return succeed();
	}
}
