fix: controller层代码修正

This commit is contained in:
liu.zixi
2025-11-24 15:39:26 +08:00
parent c2eb338e95
commit 2c8732b2f1

View File

@@ -143,7 +143,7 @@ public class CourseManageApi extends ApiBaseController{
@PostMapping("/top-sortchange")
public JsonResponse<List<CoursePageVo>> topListSortChange(@RequestBody List<CoursePageVo> changedList) {
ServiceResponse<List<CoursePageVo>> serviceResponse = coursePageService.topListSortChange(changedList);
if (serviceResponse.isSuccess()) {
if (!serviceResponse.isSuccess()) {
return error(serviceResponse.getMessage());
}
return success(serviceResponse.getData());