|
|
@ -6,10 +6,7 @@ import com.ruoyi.model.service.*; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
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 org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -43,14 +40,14 @@ public class ApiAppletExaminationController { |
|
|
|
private IAppletAnswerTrainService appletAnswerTrainService; |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-题目列表数据查询") |
|
|
|
@PostMapping("/questionList") |
|
|
|
@GetMapping("/questionList") |
|
|
|
public AjaxResult questionList(@RequestBody AppletQuestion question){ |
|
|
|
List<AppletQuestion> questionList = appletQuestionService.selectAppletQuestionList(question); |
|
|
|
return AjaxResult.success("题目列表数据",questionList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-根据题目id查询题目答案") |
|
|
|
@PostMapping("/insertUser") |
|
|
|
@GetMapping("/insertUser") |
|
|
|
public AjaxResult answerListByQuestionId(long questionId){ |
|
|
|
AppletAnswer appletAnswer = new AppletAnswer(); |
|
|
|
appletAnswer.setQuestionId(questionId); |
|
|
@ -59,14 +56,14 @@ public class ApiAppletExaminationController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-查询宠物类型列表") |
|
|
|
@PostMapping("/petTypeList") |
|
|
|
@GetMapping("/petTypeList") |
|
|
|
public AjaxResult petTypeList(@RequestBody AppletPetType appletPetType){ |
|
|
|
List<AppletPetType> petTypeList = appletPetTypeService.selectAppletPetTypeList(appletPetType); |
|
|
|
return AjaxResult.success("宠物类型列表数据",petTypeList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-查询专业执照列表") |
|
|
|
@PostMapping("/licenseList") |
|
|
|
@GetMapping("/licenseList") |
|
|
|
public AjaxResult licenseList(@RequestBody AppletLicense appletLicense){ |
|
|
|
List<AppletLicense> licenseList = appletLicenseService.selectAppletLicenseList(appletLicense); |
|
|
|
return AjaxResult.success("专业执照列表数据",licenseList); |
|
|
@ -80,7 +77,7 @@ public class ApiAppletExaminationController { |
|
|
|
// } |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-根据题目id查询基本考核答案") |
|
|
|
@PostMapping("/answeBaseByQuestionId") |
|
|
|
@GetMapping("/answeBaseByQuestionId") |
|
|
|
public AjaxResult answeBaseByQuestionId(Long questionId, Long userId){ |
|
|
|
AppletAnswerBase answerBase = new AppletAnswerBase(); |
|
|
|
answerBase.setQuestionId(questionId); |
|
|
@ -115,7 +112,7 @@ public class ApiAppletExaminationController { |
|
|
|
// } |
|
|
|
|
|
|
|
@ApiOperation("伴宠师工作台-根据题目id查询培训考核答案") |
|
|
|
@PostMapping("/answeTrainByQuestionId") |
|
|
|
@GetMapping("/answeTrainByQuestionId") |
|
|
|
public AjaxResult answeTrainByQuestionId(Long questionId, Long userId){ |
|
|
|
AppletAnswerTrain answerTrain = new AppletAnswerTrain(); |
|
|
|
answerTrain.setQuestionId(questionId); |
|
|
|