kongzy
2024-06-24 4910e41f81a85c03a9dfc83f8ec9c1e71c123d49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.gkhy.exam.admin.app;
 
 
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.ExStudentAnswer;
import com.gkhy.exam.system.service.ExStudentAnswerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
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;
 
/**
 * <p>
 * 学员与考试题目关系表 前端控制器
 * </p>
 *
 * @author kzy
 * @since 2024-06-13 17:47:56
 */
@Api(tags = "APP学员与考试题目关系前端控制器")
@RestController
@RequestMapping("/app/student-answer")
public class AppStudentAnswerController {
    @Autowired
    private ExStudentAnswerService studentAnswerService;
 
    @ApiOperation(value = "新增答题")
    @PostMapping
    public CommonResult add(@Validated @RequestBody ExStudentAnswer studentAnswer){
        return CommonResult.success(studentAnswerService.addStudentAnswer(studentAnswer));
    }
 
}