| | |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "消息") |
| | | //@Api(tags = "消息") |
| | | @RequestMapping("/api/mesShopReply") |
| | | public class MesShopReplyController { |
| | | |
| | | private final MesShopReplyService mesShopReplyService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | // @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('mesShopReply:list')") |
| | | public void exportMesShopReply(HttpServletResponse response, MesShopReplyQueryCriteria criteria) throws IOException { |
| | |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询消息") |
| | | // @ApiOperation("查询消息") |
| | | @PreAuthorize("@el.check('mesShopReply:list')") |
| | | public ResponseEntity<PageResult<MesShopReply>> queryMesShopReply(MesShopReplyQueryCriteria criteria){ |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增消息") |
| | | @ApiOperation("新增消息") |
| | | // @Log("新增消息") |
| | | // @ApiOperation("新增消息") |
| | | @PreAuthorize("@el.check('mesShopReply:add')") |
| | | public ResponseEntity<Object> createMesShopReply(@Validated @RequestBody MesShopReply resources){ |
| | | mesShopReplyService.create(resources); |
| | |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改消息") |
| | | @ApiOperation("修改消息") |
| | | // @Log("修改消息") |
| | | // @ApiOperation("修改消息") |
| | | @PreAuthorize("@el.check('mesShopReply:edit')") |
| | | public ResponseEntity<Object> updateMesShopReply(@Validated @RequestBody MesShopReply resources){ |
| | | mesShopReplyService.update(resources); |
| | |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除消息") |
| | | @ApiOperation("删除消息") |
| | | // @Log("删除消息") |
| | | // @ApiOperation("删除消息") |
| | | @PreAuthorize("@el.check('mesShopReply:del')") |
| | | public ResponseEntity<Object> deleteMesShopReply(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | mesShopReplyService.deleteAll(ids); |