package com.template.api;

import com.template.model.request.insertReturnRequest;
import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;


@RequestMapping("/api/alumniReturn")
@Api(tags = {"AlumniReturnController"}, value = "返校申请")
public interface AlumniReturnControllerAPI {

    //新增返校申请
    @PostMapping("/insertReturnData")
    @ApiOperation(value = "新增返校申请", httpMethod = "POST")
    CommonResult insertReturnData(@Validated @RequestBody insertReturnRequest ier, @RequestAttribute Integer userId, BindingResult bindingResult);

    //返校申请分页数据
    @GetMapping("/applicationReturn")
    @ApiOperation(value = "申请记录", httpMethod = "GET")
    CommonResult applicationReturn(@RequestParam int currentPage, @RequestParam int pageCount,@RequestAttribute Integer userId,@RequestParam int weekType);

    //获取校区下拉数据
    @GetMapping(value = "/querySchools")
    @ApiOperation(value = "获取校区下拉列表数据", notes = "获取校区下拉列表数据", httpMethod = "GET")
    CommonResult querySchools();
}
