New file |
| | |
| | | package com.cl.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.cl.pojo.dto.AddInstitutionDTO; |
| | | import com.cl.pojo.dto.EditInstitutionDTO; |
| | | import com.cl.pojo.entity.Institution; |
| | | import com.cl.pojo.vo.InstitutionVO; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | public interface InstitutionService extends IService<Institution> { |
| | | void add(@Valid AddInstitutionDTO addDTO); |
| | | |
| | | IPage<InstitutionVO> pageList(IPage<Institution> page, List<Integer> county, String name); |
| | | |
| | | InstitutionVO read(Integer id); |
| | | |
| | | void edit(@Valid EditInstitutionDTO editDTO); |
| | | |
| | | void delete(Integer id); |
| | | |
| | | List<InstitutionVO> getAll(Integer county); |
| | | } |