| | |
| | | import com.whyc.service.SoftwareService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.openxml4j.exceptions.InvalidFormatException; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | |
| | | return response; |
| | | } |
| | | |
| | | @ApiOperation(value = "查询软件列表的信息") |
| | | @GetMapping("getAllSoftware") |
| | | public Response getAllSoftware(@RequestParam(required = false) String fileName,@RequestParam int pageCurr,@RequestParam int pageSize ){ |
| | | return service.getAllSoftware(fileName,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据subcode查询软件列表") |
| | | @GetMapping("getSoftBySubCode") |
| | | public Response getSoftBySubCode(@RequestParam String subCode ){ |
| | | return service.getSoftBySubCode(subCode); |
| | | } |
| | | |
| | | |
| | | } |