完成表更改

master
ymnets 5 months ago
parent 268f9d1a8d
commit c95e2fc9f7

@ -93,19 +93,19 @@ public class BackOrdersController {
@GetMapping("/create/no")
@ApiOperation(value = "创建一条订单编号", response = Result.class)
public Result createZccmOrderNo() {
public Result createOrderNo() {
return Result.success(ordersService.createOrderNo());
}
@GetMapping("/count")
@ApiOperation(value = "获取 订单金额统计数据", response = Result.class)
public Result queryZccmOrderCount() {
public Result queryOrderCount() {
return Result.success(ordersService.queryUserCount());
}
@GetMapping("/count/no")
@ApiOperation(value = "获取 订单数量统计数据", response = Result.class)
public Result queryZccmOrderCountNo() {
public Result queryOrderCountNo() {
return Result.success(ordersService.countOrderTotal());
}

@ -25,9 +25,9 @@ public class FrontCourseController {
private final ZccmCourseService courseService;
private final ZccmUserVideoPositionService userVideoPositionService;
public FrontCourseController(ZccmCourseService courseServices,
public FrontCourseController(ZccmCourseService courseService,
ZccmUserVideoPositionService userVideoPositionService) {
this.courseService = courseServices;
this.courseService = courseService;
this.userVideoPositionService = userVideoPositionService;
}
@ -89,9 +89,9 @@ public class FrontCourseController {
return Result.success(userVideoPositionService.flushToDb(userId, videoId, courseId, years, classId));
}
@GetMapping("/getZccmCourseVideoPosition")
@GetMapping("/getCourseVideoPosition")
@ApiOperation(value = "获取一个课程下所有的视频以及某个用户的播放进度", response = Result.class)
public Result getZccmCourseChapterAndVideoPosition(@RequestParam Integer courseId,
public Result getCourseChapterAndVideoPosition(@RequestParam Integer courseId,
@RequestParam Integer userId,
@RequestParam Integer classId) {
return Result.success(courseService.getCourseChapterAndVideoPosition(courseId, userId, classId));

Loading…
Cancel
Save