| | |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtPageDto; |
| | | import com.ruoyi.system.domain.dto.*; |
| | | import com.ruoyi.system.domain.vo.MgtBannerGetVo; |
| | | import com.ruoyi.system.domain.vo.MgtBannerPageVo; |
| | | import com.ruoyi.system.domain.vo.MgtPopGetVo; |
| | | import com.ruoyi.system.domain.vo.MgtPopPageVo; |
| | | import com.ruoyi.system.domain.vo.*; |
| | | import com.ruoyi.system.service.config.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Resource |
| | | private PopService popService; |
| | | |
| | | @Resource |
| | | private QuickEntryService quickEntryService; |
| | | |
| | | @RequestMapping(value = "/editCooperation", method = RequestMethod.POST) |
| | | @ApiOperation(value = "修改申请合作") |
| | |
| | | popService.deleteMgtPop(mgtBaseGetDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageQuickEntry", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取快速入口") |
| | | public R<Page<MgtQuickEntryPageVo>> pageQuickEntry(@RequestBody MgtPageDto mgtPageDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtPageDto.setUserId(userId); |
| | | Page<MgtQuickEntryPageVo> page = new Page<>(); |
| | | page.setSize(mgtPageDto.getPageSize()); |
| | | page.setCurrent(mgtPageDto.getPageNum()); |
| | | List<MgtQuickEntryPageVo> mgtQuickEntryPageVoList = quickEntryService.pageMgtQuickEntry(page); |
| | | return R.ok(page.setRecords(mgtQuickEntryPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editQuickEntry", method = RequestMethod.POST) |
| | | @ApiOperation(value = "修改快速入口") |
| | | public R editQuickEntry(@RequestBody MgtQuickEntryEditDto mgtQuickEntryEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtQuickEntryEditDto.setUserId(userId); |
| | | quickEntryService.editMgtQuickEntry(mgtQuickEntryEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getQuickEntry", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取快速入口编辑信息") |
| | | public R<MgtQuickEntryGetVo> getQuickEntry(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtBaseGetDto.setUserId(userId); |
| | | MgtQuickEntryGetVo mgtQuickEntryGetVo = quickEntryService.getMgtQuickEntry(Long.valueOf(mgtBaseGetDto.getId())); |
| | | return R.ok(mgtQuickEntryGetVo); |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteQuickEntry", method = RequestMethod.POST) |
| | | @ApiOperation(value = "删除快速入口") |
| | | public R deleteQuickEntry(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtBaseGetDto.setUserId(userId); |
| | | quickEntryService.deleteMgtQuickEntry(mgtBaseGetDto); |
| | | return R.ok(); |
| | | } |
| | | } |