package com.mindskip.xzs.controller.student; import com.mindskip.xzs.base.BaseApiController; import com.mindskip.xzs.base.RestResponse; import com.mindskip.xzs.domain.QuestionAnswer; import com.mindskip.xzs.service.QuestionAnswerService; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @author gonghl * @since 2024/5/11 下午 3:57 */ @RequiredArgsConstructor @RestController("StudentQuestionAndAnswerController") @RequestMapping("/api/student/questionAnswer") public class QuestionAndAnswerController extends BaseApiController { private final QuestionAnswerService questionAnswerService; /** * 查询 */ @PostMapping("list") public RestResponse> page() { return RestResponse.ok(questionAnswerService.list()); } }