| | |
| | | import com.java110.dto.file.FileDto; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | |
| | | private IFileServiceDao fileServiceDaoImpl; |
| | | |
| | | @Override |
| | | public int saveFile(FileDto fileDto) { |
| | | public int saveFile(@RequestBody FileDto fileDto) { |
| | | |
| | | int saveFileFlag = fileServiceDaoImpl.saveFile(BeanConvertUtil.beanCovertMap(fileDto)); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<FileDto> queryFiles(FileDto fileDto) { |
| | | public List<FileDto> queryFiles(@RequestBody FileDto fileDto) { |
| | | return BeanConvertUtil.covertBeanList(fileServiceDaoImpl.getFiles(BeanConvertUtil.beanCovertMap(fileDto)), FileDto.class); |
| | | } |
| | | |