| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | | import com.doumee.core.annotation.LoginDriverRequired; |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.LoginShopRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.constants.Constants; |
| | | import com.doumee.core.model.ApiResponse; |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @LoginShopRequired |
| | | @ApiOperation(value = "门店退出登录", notes = "小程序端") |
| | | @GetMapping("/logOutShop") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse logOutShop() { |
| | | String token = this.getRequest().getHeader(JwtTokenUtil.HEADER_KEY); |
| | | String token = this.getRequest().getHeader(JwtTokenUtil.SHOP_HEADER_KEY); |
| | | memberService.logOut(token,getShopId(), Constants.TWO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机退出登录", notes = "小程序端") |
| | | @GetMapping("/logOutDriver") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse logOutDriver() { |
| | | String token = this.getRequest().getHeader(JwtTokenUtil.HEADER_KEY); |
| | | memberService.logOut(token,getDriverId(), Constants.ONE); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | @LoginRequired |
| | | @ApiOperation(value = "用户注销", notes = "小程序端") |
| | | @GetMapping("/logOff") |