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

import com.sqx.common.utils.Result;
import com.sqx.modules.app.service.UserMoneyDetailsService;
import com.sqx.modules.artificer.entity.Period;
import com.sqx.modules.utils.PeriodUtil;
import com.winnerlook.model.VoiceNotifyBody;
import com.winnerlook.model.VoiceResponseResult;
import com.winnerlook.service.VoiceSender;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.LinkedHashMap;

@RestController
@RequestMapping("/app/fundDetails")
@Api(value = "技师端-资金明细", tags = {"技师端-资金明细"})
public class FundDetailsController {
    @Autowired
    private UserMoneyDetailsService userMoneyDetailsService;
    //@Login
    @ApiOperation("资金明细查询")
    @PostMapping(value = "selectFundDetails")
    public Result selectFundDetails(Integer page, Integer limit, Period period) {
        period = PeriodUtil.calculationPeriod(period);
        Result result = userMoneyDetailsService.selectIncomeByArtificerId(page,limit, period);
        return result;
    }
}
