| | |
| | | import cc.mrbird.febs.dapp.service.DappSystemService; |
| | | import cc.mrbird.febs.dapp.service.DappWalletService; |
| | | import cc.mrbird.febs.dapp.vo.*; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | @PostMapping(value = "/logOut") |
| | | public FebsResponse logout() { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |
| | | |
| | | String redisKey = AppContants.REDIS_KEY_SIGN + member.getId(); |
| | | String existToken = redisUtils.getString(redisKey); |
| | | if (StrUtil.isNotBlank(existToken)) { |
| | | Object o = redisUtils.get(existToken); |
| | | if (ObjectUtil.isNotEmpty(o)) { |
| | | redisUtils.del(existToken); |
| | | } |
| | | } |
| | | redisUtils.del(redisKey); |
| | | return new FebsResponse().success(); |
| | | } |
| | |
| | | public FebsResponse addMessage(@RequestBody AddMessageDto addMessageDto) { |
| | | return dappMemberService.addMessage(addMessageDto); |
| | | } |
| | | |
| | | @ApiOperation(value ="IGT客服消息-列表分页", notes = "客服消息-列表分页") |
| | | @ApiResponses(value = { |
| | | @ApiResponse(code = 200, message = "success", response = ApiMessageListVo.class) |
| | | }) |
| | | @PostMapping(value = "/messageList") |
| | | public FebsResponse messageList(@RequestBody ApiMessageListDto apiMessageListDto) { |
| | | Map<String, Object> data = getDataTable(dappMemberService.getMessageListInPage(apiMessageListDto)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | } |