|
|
|
@ -246,7 +246,8 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
@PostMapping(MODEL + "/addSession.json")
|
|
|
|
|
@Function("teacherOpenCourseScheduleSession.add")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult addSession(@RequestBody TeacherOpenCourseScheduleSessionOptions teacherOpenCourseScheduleSessionOptions,
|
|
|
|
|
public JsonResult addSession(@Validated(ValidateConfig.ADD.class) @RequestBody
|
|
|
|
|
TeacherOpenCourseScheduleSessionOptions teacherOpenCourseScheduleSessionOptions,
|
|
|
|
|
@SCoreUser CoreUser coreUser) {
|
|
|
|
|
teacherOpenCourseScheduleSessionOptions.setUserId(coreUser.getId());
|
|
|
|
|
teacherOpenCourseScheduleSessionOptions.setOrgId(coreUser.getOrgId());
|
|
|
|
@ -263,7 +264,8 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
@PostMapping(MODEL + "/editSession.json")
|
|
|
|
|
@Function("teacherOpenCourseScheduleSession.edit")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult editSession(@RequestBody TeacherOpenCourseScheduleSessionOptions teacherOpenCourseScheduleSessionOptions,
|
|
|
|
|
public JsonResult editSession(@Validated(ValidateConfig.UPDATE.class) @RequestBody
|
|
|
|
|
TeacherOpenCourseScheduleSessionOptions teacherOpenCourseScheduleSessionOptions,
|
|
|
|
|
@SCoreUser CoreUser coreUser) {
|
|
|
|
|
teacherOpenCourseScheduleSessionOptions.setUserId(coreUser.getId());
|
|
|
|
|
teacherOpenCourseScheduleSessionOptions.setOrgId(coreUser.getOrgId());
|
|
|
|
|