| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.member.controller.management.dto.MgtMemberPointsQuery; |
| | | import com.ruoyi.member.controller.management.dto.MgtMemberQuery; |
| | | import com.ruoyi.member.controller.management.vo.MgtMemberPointsVO; |
| | | import com.ruoyi.member.controller.management.vo.MgtMemberVO; |
| | | import com.ruoyi.member.service.IMemberService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | return R.ok(memberService.getMemberPage(query)); |
| | | } |
| | | |
| | | @ApiOperation("查看详情") |
| | | @GetMapping("/detail/{id}") |
| | | public R<MgtMemberVO> getMemberById(@PathVariable("id") Long id) { |
| | | return R.ok(memberService.getMemberById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取积分明细分页列表 |
| | | * |
| | | * @param query 会员积分明细查询对象 |
| | | * @return PageDTO<MgtMemberPointsVO> |
| | | */ |
| | | @ApiOperation("查看详情-积分明细") |
| | | @PostMapping("/points/detail") |
| | | public R<PageDTO<MgtMemberPointsVO>> getMemberPoints( |
| | | @Validated @RequestBody MgtMemberPointsQuery query) { |
| | | return R.ok(memberService.getMemberPoints(query)); |
| | | } |
| | | } |