package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.service.DocUserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@RequestMapping("login")
|
@RestController
|
@Api(tags = "登录")
|
public class LoginController {
|
|
@Autowired
|
private DocUserService userService;
|
|
@PostMapping("/")
|
@ApiOperation(value ="登录")
|
public Response login(@RequestParam String name, String snId, HttpServletRequest request){
|
return userService.login(name,snId,request);
|
}
|
|
}
|