package com.liangjian.dataplatform.member.controller;

import com.liangjian.dataplatform.member.entity.response.ResultObject;
import com.liangjian.dataplatform.member.service.IUserPointStasticService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: 黄树文
 * @Date: 2019/12/5 17:26
 */
@RestController
@RequestMapping("/userPointStastic")
@Api(value = "获取待消费，已发放，已消费，已过期积分余额", tags = "获取待消费，已发放，已消费，已过期积分余额", description = "获取待消费，已发放，已消费，已过期积分余额")
public class UserPointStasticController {

    @Autowired
    private IUserPointStasticService iUserPointStasticService;

    @GetMapping("/point")
    @ApiOperation(value = "获取待消费，已发放，已消费，已过期积分余额")
    public ResultObject<Map<String, Object>> getPoint() {
        Map<String, Object> point = iUserPointStasticService.getPoints();
        return ResultObject.success(point);
    }
}
