1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.ruoyi.member.controller.management;
 
 
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.vo.MgtMemberPointsVO;
import com.ruoyi.member.service.IMemberPointsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 会员积分表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-05-23
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/mgt/member-points")
@Api(value = "管理后台-会员积分管理相关接口", tags = "管理后台-会员积分管理相关接口")
public class MemberPointsController {
 
    private final IMemberPointsService iMemberPointsService;
 
    /**
     * 获取会员积分列表的分页数据
     *
     * @param query 会员积分明细查询对象
     * @return PageDTO<MgtMemberPointsVO>
     */
    @ApiOperation(value = "获取会员积分列表的分页数据", notes = "会员积分列表的分页数据")
    @PostMapping("/page")
    public R<PageDTO<MgtMemberPointsVO>> getMemberPointsPage(
            @Validated @RequestBody MgtMemberPointsQuery query) {
        return R.ok(iMemberPointsService.getMemberPointsPage(query));
    }
}