InfraStudentService 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package com.jt.cloud.module.infra.service.demo;
  2. import java.util.*;
  3. import javax.validation.*;
  4. import com.jt.cloud.module.infra.controller.admin.demo.vo.*;
  5. import com.jt.cloud.module.infra.dal.dataobject.demo.InfraStudentDO;
  6. import com.jt.cloud.framework.common.pojo.PageResult;
  7. import com.jt.cloud.framework.common.pojo.PageParam;
  8. /**
  9. * 学生 Service 接口
  10. *
  11. * @author jt
  12. */
  13. public interface InfraStudentService {
  14. /**
  15. * 创建学生
  16. *
  17. * @param createReqVO 创建信息
  18. * @return 编号
  19. */
  20. Long createStudent(@Valid InfraStudentSaveReqVO createReqVO);
  21. /**
  22. * 更新学生
  23. *
  24. * @param updateReqVO 更新信息
  25. */
  26. void updateStudent(@Valid InfraStudentSaveReqVO updateReqVO);
  27. /**
  28. * 删除学生
  29. *
  30. * @param id 编号
  31. */
  32. void deleteStudent(Long id);
  33. /**
  34. * 获得学生
  35. *
  36. * @param id 编号
  37. * @return 学生
  38. */
  39. InfraStudentDO getStudent(Long id);
  40. /**
  41. * 获得学生分页
  42. *
  43. * @param pageReqVO 分页查询
  44. * @return 学生分页
  45. */
  46. PageResult<InfraStudentDO> getStudentPage(InfraStudentPageReqVO pageReqVO);
  47. }