BatchStudentMappingController.java 1.19 KB
package com.meishu.controller;


import com.meishu.common.ResponseData;
import com.meishu.common.ResponseVO;
import com.meishu.model.BatchStudentMappingDO;
import com.meishu.service.BatchStudentMappingService;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Tuyp
 * @since 2023-07-14
 */
@RestController
@Api(tags = "批次-学生映射表")
@RequestMapping("/batchStudentMapping")
public class BatchStudentMappingController {

    @Autowired
    private BatchStudentMappingService batchStudentMappingService;

    @PostMapping("batchStudents")
    @ApiOperation("查看某一批次的学生 batchId")
    public ResponseVO batchStudents(@RequestBody BatchStudentMappingDO batchStudentMappingDO){
        return ResponseData.generateCreatedResponse(0,batchStudentMappingService.batchStudents(batchStudentMappingDO));
    }


}