|
|
|
@ -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());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|