| | |
| | | import com.ruoyi.system.api.domain.dto.MgtPageDto; |
| | | import com.ruoyi.system.api.domain.vo.MgtBulletinBoardVo; |
| | | import com.ruoyi.system.domain.dto.*; |
| | | import com.ruoyi.system.domain.pojo.config.BottomNav; |
| | | import com.ruoyi.system.domain.vo.*; |
| | | import com.ruoyi.system.service.config.*; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Resource |
| | | private RecommendCooperationService recommendCooperationService; |
| | | |
| | | @Resource |
| | | private BottomNavService bottomNavService; |
| | | |
| | | |
| | | @RequestMapping(value = "/getCustomConfig", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取单个配置") |
| | |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtServiceCodeEditDto.setUserId(userId); |
| | | customConfigService.editServiceCode(mgtServiceCodeEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editShopProportion", method = RequestMethod.POST) |
| | | @Log(title = "商户分成管理", businessType = BusinessType.UPDATE,operContent = "修改商户分成") |
| | | @ApiOperation(value = "修改商户分成") |
| | | public R editShopProportion(@RequestBody MgtShopCommonProportionEditDto mgtShopCommonProportionEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtShopCommonProportionEditDto.setUserId(userId); |
| | | customConfigService.editShopProportion(mgtShopCommonProportionEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getBottomNav", method = RequestMethod.GET) |
| | | @ApiOperation(value = "获取底部导航栏配置数据") |
| | | public R<List<BottomNav>> getBottomNav() { |
| | | List<BottomNav> list = bottomNavService.getAllBottomNav(); |
| | | return R.ok(list); |
| | | } |
| | | @RequestMapping(value = "/editBottomNav", method = RequestMethod.PUT) |
| | | @ApiOperation(value = "获取底部导航栏配置数据") |
| | | public R<Void> editBottomNav(@RequestBody BottomNavDto bottomNavDto) { |
| | | return bottomNavService.editBottomNav(bottomNavDto); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageQuickEntry", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取快速入口") |
| | | public R<Page<MgtQuickEntryPageVo>> pageQuickEntry(@RequestBody MgtPageDto mgtPageDto) { |
| | |
| | | customConfigService.editOtherConfig(mgtOtherConfigEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/editStoreCurriculum", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改门店课程设置") |
| | | @ApiOperation(value = "修改门店课程设置") |
| | | public R editStoreCurriculum(@Validated @RequestBody MgtStoreCurriculumEditDto mgtStoreCurriculumEditDto) { |
| | | customConfigService.editStoreCurriculum(mgtStoreCurriculumEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/editShopConfig", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改合作商配置") |
| | |
| | | List<RegionVo> regionVoList = regionService.listCityVo(); |
| | | return R.ok(regionVoList); |
| | | } |
| | | |
| | | @RequestMapping(value = "/listRegions", method = RequestMethod.GET) |
| | | @ApiOperation(value = "获取省市区列表") |
| | | public R<List<RegionVo>> listRegions(Long pid){ |
| | | List<RegionVo> regionVoList = regionService.listRegions(pid); |
| | | return R.ok(regionVoList); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/pageAllotRecommend", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取推荐分配列表") |