| | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.dapp.dto.ApproveDto; |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import cc.mrbird.febs.dapp.service.DappSimulateDataService; |
| | | import cc.mrbird.febs.dapp.service.DappSystemService; |
| | | import cc.mrbird.febs.dapp.vo.SimulateDataVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | private final DappMemberService dappMemberService; |
| | | private final DappSystemService dappSystemService; |
| | | private final DappSimulateDataService dappSimulateDataService; |
| | | |
| | | @ApiOperation(value = "授权接口", notes = "授权接口") |
| | | @PostMapping(value = "/approve") |
| | |
| | | public FebsResponse totalIncome() { |
| | | return new FebsResponse().success().data(dappSystemService.findTotalInComeAndList()); |
| | | } |
| | | |
| | | @ApiOperation(value = "全局设置", notes = "全局设置") |
| | | @GetMapping(value = "/globalSetting") |
| | | public FebsResponse globalSetting() { |
| | | return new FebsResponse().success().data(dappSystemService.globalSetting()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取模拟数据", notes = "获取模拟数据") |
| | | @GetMapping(value = "/findSimulateData/{batchNo}") |
| | | public FebsResponse findSimulateData(@PathVariable("batchNo") String batchNo) { |
| | | SimulateDataVo simulateData = dappSimulateDataService.findSimulateData(batchNo); |
| | | return new FebsResponse().success().data(simulateData); |
| | | } |
| | | } |