beetlsql3-dev
Mlxa0324 2 years ago
parent 72210a850f
commit 328135990d

@ -208,7 +208,7 @@ public class TeacherOpenCourseStudentSigninLogController{
} }
/** /**
* -- * -
* @param signinDTO DTO * @param signinDTO DTO
* @return * @return
*/ */

@ -44,6 +44,12 @@ public class TeacherOpenCourseStudentSigninSettingController{
/* 前端接口 */ /* 前端接口 */
/**
* -
* @param condition
* @param coreUser
* @return
*/
@PostMapping(API + "/getPageList.do") @PostMapping(API + "/getPageList.do")
public JsonResult<PageQuery> getPageList(TeacherOpenCourseStudentSigninSettingQuery condition,@SCoreUser CoreUser coreUser){ public JsonResult<PageQuery> getPageList(TeacherOpenCourseStudentSigninSettingQuery condition,@SCoreUser CoreUser coreUser){
if(null == coreUser){ if(null == coreUser){

@ -3,19 +3,24 @@ package com.ibeetl.jlw.web.api.teacher;
import com.ibeetl.admin.core.web.JsonResult; import com.ibeetl.admin.core.web.JsonResult;
import com.ibeetl.jlw.entity.api.teacher.TeacherIndexData; import com.ibeetl.jlw.entity.api.teacher.TeacherIndexData;
import com.ibeetl.jlw.service.api.teacher.TeacherIndexService; import com.ibeetl.jlw.service.api.teacher.TeacherIndexService;
import org.apache.commons.logging.Log; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.LogFactory; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
/**
* -
*
* @author lx
*/
@Slf4j
@Validated
@RestController @RestController
public class TeacherIndexController { @RequestMapping("/api/teacherIndex")
public class ApiTeacherController {
private final Log log = LogFactory.getLog(this.getClass());
private static final String API = "/api/teacherIndex";
@Resource private TeacherIndexService teacherIndexService; @Resource private TeacherIndexService teacherIndexService;
@ -23,8 +28,9 @@ public class TeacherIndexController {
* - * -
* @return * @return
*/ */
@PostMapping(API + "/index.do") @PostMapping("index.do")
public JsonResult<TeacherIndexData> index() { public JsonResult<TeacherIndexData> index() {
return JsonResult.success(teacherIndexService.index()); return JsonResult.success(teacherIndexService.index());
} }
} }

@ -19,7 +19,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
* @date 2022/10/20 * @date 2022/10/20
* @modified * @modified
*/ */
class TeacherIndexControllerTest extends BaseTest { class ApiTeacherControllerTest extends BaseTest {
private static final String API = "/api/teacherIndex"; private static final String API = "/api/teacherIndex";
Loading…
Cancel
Save