|
@@ -16,10 +16,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -90,6 +87,18 @@ public class CourseController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询用户是否拥有(山东题库)
|
|
|
+ */
|
|
|
+ @ApiOperation("查询用户是否拥有(山东题库)")
|
|
|
+ @GetMapping("/special/question/count")
|
|
|
+ public AjaxResult<Long> getSpecialQuestionCount(SpecialQuestionBo bo) {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ Long num = iCourseService.getSpecialQuestionCount(bo);
|
|
|
+ return AjaxResult.success(num);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("查询用户拥有的讲义商品")
|
|
|
@GetMapping("/goodsHandoutsList")
|
|
|
public TableDataInfo<GoodsUserVo> goodsHandoutsList(CourseQueryBo bo) {
|