| | |
| | | } |
| | | |
| | | private void validateCategories(Long levelCategoryId, Long difficultyCategoryId) { |
| | | LiveCourseCategory level = requireCategory(levelCategoryId, LiveCourseCategoryAppService.TYPE_LEVEL, "养生等级"); |
| | | LiveCourseCategory level = requireCategory(levelCategoryId, LiveCourseCategoryAppService.TYPE_LEVEL, "养生主题"); |
| | | LiveCourseCategory difficulty = requireCategory(difficultyCategoryId, LiveCourseCategoryAppService.TYPE_DIFFICULTY, "难度"); |
| | | if (level == null || difficulty == null) { |
| | | throw new IllegalArgumentException("分类不存在"); |