| | |
| | | package project.web.api; |
| | | |
| | | import kernel.web.BaseAction; |
| | | import kernel.web.ResultObject; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import project.party.PartyService; |
| | | import project.redis.RedisHandler; |
| | | import project.syspara.SysparaService; |
| | | import project.wallet.WalletGather; |
| | | import project.wallet.WalletGatherService; |
| | | import project.wallet.WalletService; |
| | | import project.wallet.internal.WalletGatherServiceImpl; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(action + "get.action") |
| | | public Object get(HttpServletRequest request) throws IOException { |
| | | public ResultObject get(HttpServletRequest request) throws IOException { |
| | | String partyId = this.getLoginPartyId(); |
| | | WalletGatherService walletGatherService = new WalletGatherServiceImpl(jdbcTemplate,redisHandler,walletService); |
| | | return walletGatherService.getWalletGatherByPartyId(partyId,dataService); |
| | | WalletGather walletGather = walletGatherService.getWalletGatherByPartyId(partyId, dataService); |
| | | ResultObject resultObject = new ResultObject(); |
| | | resultObject.setData(walletGather); |
| | | return resultObject; |
| | | } |
| | | |
| | | @PostMapping(action + "transfer.action") |