package com.mindskip.xzs.controller.student;
|
|
import com.mindskip.xzs.base.RestResponse;
|
import com.mindskip.xzs.domain.vo.StudentOnlineVO;
|
import com.mindskip.xzs.service.OnlineStudyService;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @author:xp
|
* @date:2024/5/16 17:50
|
*/
|
@RestController("studentOnlineStudy")
|
@RequiredArgsConstructor
|
@RequestMapping(value = "/api/student/online/study")
|
public class OnlineStudyController {
|
|
private final OnlineStudyService service;
|
|
|
@GetMapping("/byType")
|
public RestResponse byType(StudentOnlineVO query) {
|
return service.byType(query);
|
}
|
|
@GetMapping("/type/list")
|
public RestResponse typeList() {
|
return service.typeList();
|
}
|
|
|
}
|