| | |
| | | import cc.mrbird.febs.common.controller.BaseController; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.dapp.entity.DappWalletCoinEntity; |
| | | import cc.mrbird.febs.dapp.entity.DappWalletMineEntity; |
| | | import cc.mrbird.febs.dapp.service.DappWalletService; |
| | | import cc.mrbird.febs.system.entity.User; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @author |
| | | * @date 2022-03-22 |
| | | **/ |
| | | @Slf4j |
| | |
| | | |
| | | @RequestMapping(value = "/walletCoin") |
| | | public FebsResponse walletCoin(DappWalletCoinEntity walletCoin, QueryRequest request) { |
| | | User currentUser = FebsUtil.getCurrentUser(); |
| | | if (currentUser.getDeptId() == null) { |
| | | walletCoin.setCurrentUser(currentUser.getUserId()); |
| | | } |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.walletCoinInPage(walletCoin, request))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/walletMine") |
| | | public FebsResponse walletMine(DappWalletMineEntity walletMine, QueryRequest request) { |
| | | User currentUser = FebsUtil.getCurrentUser(); |
| | | if (currentUser.getDeptId() == null) { |
| | | walletMine.setCurrentUser(currentUser.getUserId()); |
| | | } |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.walletMineInPage(walletMine, request))); |
| | | } |
| | | } |