| | |
| | | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import com.whyc.service.UserInfService; |
| | | import com.whyc.util.UserUtil; |
| | | import io.swagger.annotations.Api; |
| | |
| | | private UserInfService service; |
| | | |
| | | |
| | | @PostMapping("login") |
| | | @GetMapping("login") |
| | | @ApiOperation(value ="登录") |
| | | public Response login(@RequestParam String uname, String usnId, HttpServletRequest request){ |
| | | return service.login(uname,usnId,request); |
| | |
| | | service.logout(); |
| | | } |
| | | |
| | | @ApiOperation(value = "cookie点击") |
| | | @GetMapping("getCookie") |
| | | public Response getCookie() { |
| | | return new Response().set(1, true); |
| | | } |
| | | |
| | | } |