| | |
| | | @PostMapping("/update") |
| | | fun updateQuestion( |
| | | @ApiParam("线索问题json") @RequestParam("question") question: String, |
| | | @ApiParam("删除的图片路径数组") @RequestParam("deleteImg") deleteImg: String, |
| | | @ApiParam("新增的线索图片") @RequestPart("images") files: Array<MultipartFile>, |
| | | @ApiParam("删除的图片路径数组") @RequestParam("deleteImg", required = false) deleteImg: String?, |
| | | @ApiParam("新增的线索图片") @RequestPart("images", required = false) files: Array<MultipartFile>?, |
| | | ) = resPack { clueQuestionService.updateQuestionAndImage(question, deleteImg, files) } |
| | | |
| | | @ApiOperation("删除线索问题及图片") |
| | |
| | | @GetMapping("/fetch") |
| | | fun getClueQuestion( |
| | | @ApiParam("线索id") @RequestParam clueId: String, |
| | | ) = resPack { clueQuestionService.getClueQuestion(clueId) } |
| | | @ApiParam("是否为线索") @RequestParam(required = false) internal: Boolean?, |
| | | ) = resPack { clueQuestionService.getClueQuestion(clueId, internal) } |
| | | |
| | | @ApiOperation("推送线索问题及图片至第三方") |
| | | @PostMapping("/push") |