feat: 🎸 新建章节返回章节id

This commit is contained in:
GoCo 2025-09-17 20:14:01 +08:00
parent 87fbf7c686
commit a9e3e9146a

View File

@ -114,7 +114,7 @@ public class AiolCourseSectionController extends JeecgController<AiolCourseSecti
aiolEntityLinkMapper.insert(entityLink); aiolEntityLinkMapper.insert(entityLink);
} }
return Result.OK("添加成功!"); return Result.OK(sectionDTO.getId());
} catch (Exception e) { } catch (Exception e) {
log.error("添加课程章节失败: {}", e.getMessage(), e); log.error("添加课程章节失败: {}", e.getMessage(), e);
return Result.error("添加课程章节失败: " + e.getMessage()); return Result.error("添加课程章节失败: " + e.getMessage());