| | |
| | | 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.DappSystemService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | **/ |
| | | @Slf4j |
| | | @RequiredArgsConstructor |
| | | @CrossOrigin(origins = "*") |
| | | @CrossOrigin("*") |
| | | @RestController |
| | | @Api(value = "dapp公共接口", tags = "dapp公共接口") |
| | | @RequestMapping(value = "/dapp/common") |
| | | @RequestMapping(value = "/dapi/common") |
| | | public class ApiCommonController { |
| | | |
| | | private final DappMemberService dappMemberService; |
| | | private final DappSystemService dappSystemService; |
| | | |
| | | @ApiOperation(value = "授权接口", notes = "授权接口") |
| | | @PostMapping(value = "/approve") |
| | |
| | | } |
| | | return new FebsResponse().fail().message("未授权"); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页总收入和列表", notes = "总收入和列表") |
| | | @GetMapping(value = "/totalIncome") |
| | | 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()); |
| | | } |
| | | } |