吴学文
2019-03-20 4a7837c46a5d10755ba1eeb29f833c3eaa8a703e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.java110.web.components;
 
 
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
 
@Component("login")
public class LoginComponent {
 
    /**
     * 用户登录
     * @param userInfo
     * @return
     */
    public ResponseEntity<String> doLogin(String userInfo){
 
        ResponseEntity<String> responseEntity = null;
 
        try{
            responseEntity = new ResponseEntity<String>("成功", HttpStatus.OK);
        }catch (Exception e){
            responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
        }finally {
            return responseEntity;
        }
    }
 
    private void userLogin(){
 
 
    }
}