package com.dsh.course.feignClient.course;
|
|
import com.dsh.course.dto.ClassListDto;
|
import com.dsh.course.dto.updateTimeDto;
|
import com.dsh.course.model.dto.StudentClassInfo;
|
import com.dsh.guns.modular.system.model.dto.SelectDto;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.Date;
|
import java.util.List;
|
|
@FeignClient("mb-cloud-course")
|
public interface CourseStuddentClient {
|
|
|
/**
|
* 拿到学运信息
|
* @param tStudentId
|
* @return
|
*/
|
@RequestMapping("/courdent/getInfo")
|
StudentClassInfo getInfo(@RequestParam("tStudentId")Integer tStudentId);
|
|
|
/**
|
* 拿到学员课程列表
|
* @param tStudentId
|
* @return
|
*/
|
@RequestMapping("/courdent/getClassList")
|
|
List<ClassListDto> listClass(@RequestParam("tStudentId") Integer tStudentId);
|
|
/**
|
* 拿到学有效期
|
* @param tStudentId
|
* @return
|
*/
|
@RequestMapping("/courdent/getUseTime")
|
Date getUseTime(@RequestParam("tStudentId") Integer tStudentId);
|
|
|
/**
|
* 批量修改有效期
|
* @param updateTimeDto
|
* @return
|
*/
|
@RequestMapping("/courdent/updateUseDate")
|
void updateUseDate(@RequestBody updateTimeDto updateTimeDto);
|
|
|
/**
|
* 获取可以转移的学员
|
* @param payId
|
* @return
|
*/
|
@RequestMapping("/courdent/getSelect")
|
List<SelectDto> getSelect(@RequestParam("payId") Integer payId);
|
}
|