| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.log.annotation.Log; |
| | | import com.ruoyi.common.log.enums.BusinessType; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtPageDto; |
| | |
| | | import com.ruoyi.system.service.config.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | return R.ok(mgtCustomConfigVo); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getActivenessList", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取活跃度") |
| | | public R<List<String>> getActivenessList() { |
| | | List<String> activenessList = activenessService.getActivenessList(); |
| | | return R.ok(activenessList); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editCooperation", method = RequestMethod.POST) |
| | | @Log(title = "申请合作管理", businessType = BusinessType.UPDATE,operContent = "修改申请合作") |
| | | @ApiOperation(value = "修改申请合作") |
| | | public R editCooperation(@RequestBody MgtCooperationEditDto mgtCooperationEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editServiceMobile", method = RequestMethod.POST) |
| | | @Log(title = "客服电话管理", businessType = BusinessType.UPDATE,operContent = "修改客服电话") |
| | | @ApiOperation(value = "修改客服电话") |
| | | public R editServiceMobile(@RequestBody MgtServiceMobileEditDto mgtServiceMobileEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editAgreement", method = RequestMethod.POST) |
| | | @Log(title = "协议管理", businessType = BusinessType.UPDATE,operContent = "修改协议") |
| | | @ApiOperation(value = "修改协议") |
| | | public R editAgreement(@RequestBody MgtAgreementEditDto mgtAgreementEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editBanner", method = RequestMethod.POST) |
| | | @Log(title = "banner管理", businessType = BusinessType.UPDATE,operContent = "修改banner") |
| | | @ApiOperation(value = "修改banner") |
| | | public R editBanner(@RequestBody MgtBannerEditDto mgtBannerEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteBanner", method = RequestMethod.POST) |
| | | @Log(title = "banner管理", businessType = BusinessType.DELETE,operContent = "删除banner") |
| | | @ApiOperation(value = "删除banner") |
| | | public R deleteBanner(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editPop", method = RequestMethod.POST) |
| | | @Log(title = "弹窗管理", businessType = BusinessType.UPDATE,operContent = "修改弹窗广告") |
| | | @ApiOperation(value = "修改弹窗广告") |
| | | public R editPop(@RequestBody MgtPopEditDto mgtPopEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deletePop", method = RequestMethod.POST) |
| | | @Log(title = "弹窗管理", businessType = BusinessType.DELETE,operContent = "删除弹窗广告") |
| | | @ApiOperation(value = "删除弹窗广告") |
| | | public R deletePop(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editQuickEntry", method = RequestMethod.POST) |
| | | @Log(title = "快速入口管理", businessType = BusinessType.UPDATE,operContent = "修改快速入口") |
| | | @ApiOperation(value = "修改快速入口") |
| | | public R editQuickEntry(@RequestBody MgtQuickEntryEditDto mgtQuickEntryEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteQuickEntry", method = RequestMethod.POST) |
| | | @Log(title = "快速入口管理", businessType = BusinessType.DELETE,operContent = "删除快速入口") |
| | | @ApiOperation(value = "删除快速入口") |
| | | public R deleteQuickEntry(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editOtherConfig", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改其它设置") |
| | | @ApiOperation(value = "修改其它设置") |
| | | public R editOtherConfig(@RequestBody MgtOtherConfigEditDto mgtOtherConfigEditDto) { |
| | | public R editOtherConfig(@Validated @RequestBody MgtOtherConfigEditDto mgtOtherConfigEditDto) { |
| | | customConfigService.editOtherConfig(mgtOtherConfigEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editShopConfig", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改合作商配置") |
| | | @ApiOperation(value = "修改合作商配置") |
| | | public R editShopConfig(@RequestBody MgtShopConfigEditDto mgtShopConfigEditDto) { |
| | | public R editShopConfig(@Validated @RequestBody MgtShopConfigEditDto mgtShopConfigEditDto) { |
| | | customConfigService.editShopConfig(mgtShopConfigEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editMemberConfig", method = RequestMethod.POST) |
| | | @ApiOperation(value = "修改合作商配置") |
| | | public R editMemberConfig(@RequestBody MgtMemberConfigEditDto mgtMemberConfigEditDto) { |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改会员配置") |
| | | @ApiOperation(value = "修改会员配置") |
| | | public R editMemberConfig(@Validated @RequestBody MgtMemberConfigEditDto mgtMemberConfigEditDto) { |
| | | customConfigService.editMemberConfig(mgtMemberConfigEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editAdvert", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改广告配置") |
| | | @ApiOperation(value = "修改广告配置") |
| | | public R editAdvert(@RequestBody MgtAdvertEditDto mgtAdvertEditDto) { |
| | | public R editAdvert(@Validated @RequestBody MgtAdvertEditDto mgtAdvertEditDto) { |
| | | mgtAdvertEditDto.setUserId(SecurityUtils.getUserId()); |
| | | advertService.editMgtAdvert(mgtAdvertEditDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editActiveness", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.UPDATE,operContent = "修改活跃度") |
| | | @ApiOperation(value = "修改活跃度") |
| | | public R editActiveness(@RequestBody MgtActivenessEditDto mgtActivenessEditDto) { |
| | | mgtActivenessEditDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteActiveness", method = RequestMethod.POST) |
| | | @Log(title = "其它设置管理", businessType = BusinessType.DELETE,operContent = "删除活跃度") |
| | | @ApiOperation(value = "删除活跃度") |
| | | public R deleteMgtActiveness(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | mgtBaseGetDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editClassification", method = RequestMethod.POST) |
| | | @Log(title = "分类管理", businessType = BusinessType.UPDATE,operContent = "修改分类") |
| | | @ApiOperation(value = "修改分类") |
| | | public R editClassification(@RequestBody MgtClassificationEditDto mgtClassificationEditDto) { |
| | | mgtClassificationEditDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteClassification", method = RequestMethod.POST) |
| | | @Log(title = "分类管理", businessType = BusinessType.DELETE,operContent = "删除分类") |
| | | @ApiOperation(value = "删除分类") |
| | | public R deleteClassification(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | mgtBaseGetDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | return R.ok(page.setRecords(mgtTagPageVoList)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导入标签") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, Integer tagType) throws Exception |
| | | { |
| | |
| | | return success(message); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载标签模板") |
| | | @PostMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) throws IOException |
| | | { |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editTag", method = RequestMethod.POST) |
| | | @Log(title = "标签管理", businessType = BusinessType.UPDATE,operContent = "修改标签") |
| | | @ApiOperation(value = "修改标签") |
| | | public R editTag(@RequestBody MgtTagEditDto mgtTagEditDto) { |
| | | mgtTagEditDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteTag", method = RequestMethod.POST) |
| | | @Log(title = "标签管理", businessType = BusinessType.DELETE,operContent = "删除标签") |
| | | @ApiOperation(value = "删除标签") |
| | | public R deleteTag(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | mgtBaseGetDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editArticle", method = RequestMethod.POST) |
| | | @Log(title = "文章管理", businessType = BusinessType.UPDATE,operContent = "修改文章") |
| | | @ApiOperation(value = "修改文章") |
| | | public R editArticle(@RequestBody MgtArticleEditDto mgtArticleEditDto) { |
| | | mgtArticleEditDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/deleteArticle", method = RequestMethod.POST) |
| | | @Log(title = "文章管理", businessType = BusinessType.DELETE,operContent = "删除文章") |
| | | @ApiOperation(value = "删除文章") |
| | | public R deleteArticle(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | mgtBaseGetDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/allotRecommend", method = RequestMethod.POST) |
| | | @ApiOperation(value = "删除文章") |
| | | @Log(title = "分配管理", businessType = BusinessType.UPDATE,operContent = "分配推荐") |
| | | @ApiOperation(value = "分配推荐") |
| | | public R allotRecommend(@RequestBody MgtAllotRecommendDto mgtAllotRecommendDto) { |
| | | mgtAllotRecommendDto.setUserId(SecurityUtils.getUserId()); |
| | | recommendCooperationService.allotRecommend(mgtAllotRecommendDto); |