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

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

@ -44,6 +44,12 @@ public class TeacherOpenCourseStudentSigninSettingController{
/* 前端接口 */
/**
* -
* @param condition
* @param coreUser
* @return
*/
@PostMapping(API + "/getPageList.do")
public JsonResult<PageQuery> getPageList(TeacherOpenCourseStudentSigninSettingQuery condition,@SCoreUser CoreUser 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.jlw.entity.api.teacher.TeacherIndexData;
import com.ibeetl.jlw.service.api.teacher.TeacherIndexService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* -
*
* @author lx
*/
@Slf4j
@Validated
@RestController
public class TeacherIndexController {
private final Log log = LogFactory.getLog(this.getClass());
private static final String API = "/api/teacherIndex";
@RequestMapping("/api/teacherIndex")
public class ApiTeacherController {
@Resource private TeacherIndexService teacherIndexService;
@ -23,8 +28,9 @@ public class TeacherIndexController {
* -
* @return
*/
@PostMapping(API + "/index.do")
@PostMapping("index.do")
public JsonResult<TeacherIndexData> index() {
return JsonResult.success(teacherIndexService.index());
}
}

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