|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiResponse; | 
|---|
|  |  |  | import io.swagger.annotations.ApiResponses; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Value; | 
|---|
|  |  |  | import org.springframework.validation.annotation.Validated; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private RedisClient redisClient; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Value("${login_private_key}") | 
|---|
|  |  |  | private  String privateKey; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "个人中心--获取用户业绩接口 type 1-今日 2-昨天 3-本月 4-上月") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "退出登陆", notes = "退出登陆") | 
|---|
|  |  |  | @GetMapping(value = "/loginOut") | 
|---|
|  |  |  | public AjaxResult loginOut(HttpServletRequest request) { | 
|---|
|  |  |  | String token=ApiUserLoginInterceptor.resolveToken(request); | 
|---|
|  |  |  | String token=ApiUserLoginInterceptor.resolveToken(request,privateKey); | 
|---|
|  |  |  | redisClient.removeObject(token); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance("退出成功"); | 
|---|
|  |  |  | } | 
|---|