package com.fastbee.data.controller.userRecharge;


import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.fastbee.rechargecard.domain.dto.RechargecardUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.fastbee.common.core.controller.BaseController;
import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.rechargecard.domain.UserRechargeCards;
import com.fastbee.rechargecard.service.IUserRechargeCardsService;
import com.fastbee.common.utils.poi.ExcelUtil;
import com.fastbee.common.core.page.TableDataInfo;

@RestController
@RequestMapping("/rechargecard/user")
@Api(tags = "用户充值卡")
public class UserRechargeController extends BaseController {
    @Autowired
    private IUserRechargeCardsService userRechargeCardsService;

    /**
     * 修改用户充值卡金额
     */
    @PutMapping
    @ApiOperation("修改用户充值卡")
    public AjaxResult result(@RequestBody RechargecardUser rechargecardUser)
    {
        return toAjax(userRechargeCardsService.updateUserRecharge(rechargecardUser));
    }
}
