From 1d2139950d2ef8867c39fa8c8e9af8db178eaa27 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期五, 19 五月 2023 16:21:14 +0800 Subject: [PATCH] demo补完 --- ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/business/MerMemberController.java | 36 ++++++++++++++++++++++++++++++++++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/business/MerMemberController.java b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/business/MerMemberController.java index 0bcf8a1..ed6f4b5 100644 --- a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/business/MerMemberController.java +++ b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/business/MerMemberController.java @@ -3,8 +3,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.security.utils.SecurityUtils; -import com.ruoyi.member.domain.dto.MerCashMemberPageDto; -import com.ruoyi.member.domain.dto.MerMemberPageDto; +import com.ruoyi.member.domain.dto.*; import com.ruoyi.member.domain.vo.*; import com.ruoyi.member.service.member.MemberService; import com.ruoyi.system.api.domain.dto.MerBaseDto; @@ -81,4 +80,37 @@ return R.ok(merMemberBasicFileVo); } + @RequestMapping(value = "/getMerMemberTags", method = RequestMethod.POST) + @ApiOperation(value = "获取会员标签") + public R<List<MerMemberTagVo>> getMerMemberTags(@RequestBody MerBaseGetDto merBaseGetDto) { + Long userId = SecurityUtils.getUserId(); + List<MerMemberTagVo> merMemberTagVoList = memberService.getMerMemberTags(Long.valueOf(merBaseGetDto.getId())); + return R.ok(merMemberTagVoList); + } + + @RequestMapping(value = "/editMerMemberTags", method = RequestMethod.POST) + @ApiOperation(value = "编辑会员标签") + public R editMerMemberTags(@RequestBody MerMemberTagEditDto merMemberTagEditDto) { + Long userId = SecurityUtils.getUserId(); + memberService.editMerMemberTags(merMemberTagEditDto); + return R.ok(); + } + + @RequestMapping(value = "/addMerMember", method = RequestMethod.POST) + @ApiOperation(value = "新增会员") + public R addMerMember(@RequestBody MerMemberAddDto merMemberAddDto) { + Long userId = SecurityUtils.getUserId(); + merMemberAddDto.setUserId(userId); + memberService.addMerMember(merMemberAddDto); + return R.ok(); + } + + @RequestMapping(value = "/editMerMember", method = RequestMethod.POST) + @ApiOperation(value = "编辑会员") + public R editMerMember(@RequestBody MerMemberEditDto merMemberAddDto) { + Long userId = SecurityUtils.getUserId(); + merMemberAddDto.setUserId(userId); + memberService.editMerMember(merMemberAddDto); + return R.ok(); + } } -- Gitblit v1.7.1