package com.mindskip.xzs.controller.student;
|
|
import com.mindskip.xzs.base.RestResponse;
|
import com.mindskip.xzs.domain.PracticeQuestionCondition;
|
import com.mindskip.xzs.service.PracticeQuestionConditionService;
|
import lombok.RequiredArgsConstructor;
|
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;
|
|
/**
|
* @author:xp
|
* @date:2024/5/14 17:44
|
*/
|
@RestController
|
@RequiredArgsConstructor
|
@RequestMapping("/api/student/practice/condition")
|
public class PracticeQuestionConditionController {
|
|
private final PracticeQuestionConditionService service;
|
|
@PostMapping("/save")
|
public RestResponse save(@RequestBody @Validated PracticeQuestionCondition vo) {
|
service.save(vo);
|
return RestResponse.ok();
|
}
|
|
}
|