| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.log.annotation.Log; |
| | | import com.ruoyi.common.log.enums.BusinessType; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.shop.domain.dto.*; |
| | | import com.ruoyi.shop.domain.vo.*; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "编辑商户") |
| | | @ApiOperation(value = "平台编辑商户") |
| | | public R createMgtShop(@RequestBody MgtEditShopDto mgtEditShopDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editMgtShopTag", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "修改商户标签") |
| | | @ApiOperation(value = "修改商户标签") |
| | | public R editMgtShopTag(@RequestBody MgtEditShopTagDto mgtEditShopTagDto) { |
| | | shopService.editShopTag(mgtEditShopTagDto); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/terminateMgtCooperation", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "终止合作") |
| | | @ApiOperation(value = "终止合作") |
| | | public R terminateMgtCooperation(@RequestBody MgtTerminateCooperationDto mgtTerminateCooperationDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/changeMgtCooperationTime", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "修改合作时间") |
| | | @ApiOperation(value = "修改合作时间") |
| | | public R changeMgtCooperationTime(@RequestBody MgtChangeCoopDto mgtChangeCoopDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editMgtShopProportion", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "修改商户分成") |
| | | @ApiOperation(value = "修改商户分成") |
| | | public R editMgtShopProportion(@RequestBody MgtShopProportionEditDto mgtShopProportionEditDto) { |
| | | mgtShopProportionEditDto.setUserId(SecurityUtils.getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtReplayShopSuggest", method = RequestMethod.POST) |
| | | @Log(title = "商户建议管理", businessType = BusinessType.UPDATE,operContent = "回复商户建议") |
| | | @ApiOperation(value = "平台回复建议") |
| | | public R mgtReplayShopSuggest(@RequestBody MgtReplayShopSuggestDto mgtReplayShopSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtEditShopSuggestTag", method = RequestMethod.POST) |
| | | @ApiOperation(value = "平台编辑会员建议标签") |
| | | @Log(title = "商户建议管理", businessType = BusinessType.UPDATE,operContent = "编辑商户建议标签") |
| | | @ApiOperation(value = "平台编辑商户建议标签") |
| | | public R mgtEditShopSuggestTag(@RequestBody MgtTagShopSuggestDto mgtTagShopSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtTagShopSuggestDto.setUserId(userId); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtAuditShopCertificate", method = RequestMethod.POST) |
| | | @Log(title = "商户证书管理", businessType = BusinessType.UPDATE,operContent = "审核商户证书") |
| | | @ApiOperation(value = "平台审核商户证书") |
| | | public R mgtAuditShopCertificate(@RequestBody MgtAuditShopCertificateDto mgtAuditShopCertificateDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtShopAuth", method = RequestMethod.POST) |
| | | @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件") |
| | | @ApiOperation(value = "平台商户进件") |
| | | public R mgtShopAuth(@RequestBody MgtShopAuthDto mgtShopAuthDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/getMgtShopAuthCode", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取商户进件信息") |
| | | @ApiOperation(value = "获取商户进件验证信息") |
| | | public R<MgtShopAuthCodeVo> getMgtShopAuthCode(@RequestBody MgtShopAuthGetDto mgtShopAuthGetDto) { |
| | | MgtShopAuthCodeVo mgtShopAuthCodeVo = shopService.getMgtShopAuthCode(mgtShopAuthGetDto.getAuthId()); |
| | | return R.ok(mgtShopAuthCodeVo); |