xiaoyong931011
2021-06-25 c4dcdec3c5419bffdf98a021cac170a5cec2e114
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
package com.xzx.gc.shop.controller;
 
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.common.request.BaseController;
import com.xzx.gc.model.JsonResult;
import com.xzx.gc.shop.dto.QueryOrderListDto;
import com.xzx.gc.shop.dto.QueryScoreDetailsListDto;
import com.xzx.gc.shop.service.GoodsService;
import com.xzx.gc.shop.service.ScoreDetailsService;
import com.xzx.gc.shop.vo.QueryOrderListVo;
import com.xzx.gc.shop.vo.QueryScoreDetailsListVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.Map;
 
@RestController
@Api(tags = {"积分商城--积分管理"})
@Slf4j
public class AdminScoreDetailsController extends BaseController {
 
    @Resource
    private ScoreDetailsService scoreDetailsService;
 
    /**
     * 查询积分明细
     * xzx_score_details 用户积分明细表
     */
    @PostMapping(Constants.ADMIN_VIEW_PREFIX+"/score/goods/queryScoreDetailsList.json")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = QueryScoreDetailsListVo.class)})
    @ApiOperation(value = "积分管理-查询积分明细", notes = "test: 仅0有正确返回")
    public JsonResult<Map<String, Object>> queryScoreDetailsList(@RequestBody QueryScoreDetailsListDto model) {
        Map<String, Object> result = scoreDetailsService.queryScoreDetailsList(model);
        return JsonResult.success(result);
    }
 
 
}