| | |
| | | import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; |
| | | import org.springframework.security.core.Authentication; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | return iCommonService.login(adminLoginDto); |
| | | } |
| | | |
| | | /** |
| | | * 用户退出登录 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="用户退出登录", notes="用户退出登录") |
| | | @GetMapping(value = "/Logout/{id}") |
| | | public Result memberLogout(@PathVariable(value = "id") Long id) { |
| | | return iCommonService.memberLogout(id); |
| | | } |
| | | |
| | | } |