|
@@ -23,10 +23,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.shiro.authz.annotation.Logical;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
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.*;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -150,4 +147,19 @@ public class CourseController extends BaseController {
|
|
|
IPage<UserCourseRespDTO> page = baseService.userPaging(reqDTO);
|
|
|
return super.success(page);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 统计总课程数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "统计总课程数")
|
|
|
+ @GetMapping("/course-total")
|
|
|
+ public ApiRest courseAllTotal() {
|
|
|
+ int total = baseService.courseAllTotal();
|
|
|
+ return super.success(total);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|