|
@@ -0,0 +1,48 @@
|
|
|
|
+package com.zhongzheng.controller.exam;
|
|
|
|
+
|
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
|
+import com.zhongzheng.modules.exam.bo.*;
|
|
|
|
+import com.zhongzheng.modules.exam.service.IExamBeforeGoodsService;
|
|
|
|
+import com.zhongzheng.modules.exam.service.IExamBeforeService;
|
|
|
|
+import com.zhongzheng.modules.exam.service.IExamBeforeUrlService;
|
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamBeforeUrlVo;
|
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamBeforeVo;
|
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 前培安排Controller
|
|
|
|
+ *
|
|
|
|
+ * @author ruoyi
|
|
|
|
+ * @date 2021-12-07
|
|
|
|
+ */
|
|
|
|
+@Api(value = "前培安排控制器", tags = {"前培安排管理"})
|
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/app/before")
|
|
|
|
+public class ExamBeforeController extends BaseController {
|
|
|
|
+
|
|
|
|
+ private final IExamBeforeService iExamBeforeService;
|
|
|
|
+ private final IExamBeforeUrlService iExamBeforeUrlService;
|
|
|
|
+ private final IExamBeforeGoodsService iExamBeforeGoodsService;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取前培安排详细信息
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("获得刷题地址")
|
|
|
|
+ @GetMapping("/address")
|
|
|
|
+ public AjaxResult<ExamBeforeVo> getAddressInfo(ExamBeforeQueryBo examBeforeQueryBo) {
|
|
|
|
+ return AjaxResult.success(iExamBeforeService.getAddressInfo(examBeforeQueryBo));
|
|
|
|
+ }
|
|
|
|
+}
|