Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
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
package com.xzx.gc.pay.controller;
 
import com.github.pagehelper.PageHelper;
import com.xzx.gc.common.Result;
import com.xzx.gc.common.request.BaseController;
import com.xzx.gc.model.pay.PayScoreParamDTO;
import com.xzx.gc.model.pay.PayScoreResDTO;
import com.xzx.gc.pay.service.PayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
import javax.servlet.http.HttpServletRequest;
 
@Api(tags = "积分管理")
@RestController
@Slf4j
public class ScoreController extends BaseController {
    @Autowired
    private PayService payService;
 
 
    @PostMapping( "/admin/front/pay/score/list")
    @ApiOperation(value="查询积分列表")
    public Result<PayScoreResDTO> scoreList(@RequestBody PayScoreParamDTO payScoreParamDTO, HttpServletRequest request) {
        PageHelper.startPage(payScoreParamDTO.getPageNo(),payScoreParamDTO.getPageSize());
        PayScoreResDTO payScoreResDTO=payService.scoreList(payScoreParamDTO);
        return Result.success(payScoreResDTO);
    }
}