|
|
|
@ -8,6 +8,7 @@ import com.supervision.model.User;
|
|
|
|
|
import com.supervision.service.UserService;
|
|
|
|
|
import com.supervision.util.TokenUtil;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
@ -23,6 +24,7 @@ public class UserController {
|
|
|
|
|
|
|
|
|
|
private final UserService userService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation("登录")
|
|
|
|
|
@GetMapping("login")
|
|
|
|
|
public String login(String userAccount, String password) {
|
|
|
|
|
if (!StrUtil.isAllNotBlank(userAccount, password)) {
|
|
|
|
|