package com.sqx.modules.integral.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.integral.service.UserIntegralDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.io.ResolverUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags={"用户端-积分明细"})
@RestController
@RequestMapping("/app/userintegraldetails")
public class UserIntegralDetailsController {

    @Autowired
    private UserIntegralDetailsService userIntegralDetailsService;

    @Login
    @ApiOperation("查看积分明细")
    @GetMapping(value = "selectIntegraldetailsList")
    public Result selectIntegraldetailsList(@RequestAttribute Long userId, Integer page, Integer limit, Integer classify){

        return userIntegralDetailsService.selectIntegraldetailsList(userId, page, limit, classify);
    }



}
