cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package cn.ksource.web.entity;
 
 
import java.util.HashMap;
import java.util.Map;
 
import cn.ksource.core.web.WebLoginUser;
 
 
public class WebLoginEntity {
    
    /**
     * 用户名为空
     */
    public final static int LOGIN_RESULT_USERNAME_IS_EMPTY = 0;
    
    /**
     * 用户名为空
     */
    public final static int LOGIN_RESULT_PASSWORD_IS_EMPTY = 1;
 
    /**
     * 用户名不存在 
     */
    public final static int Login_Result_UserNameNotExists = 2;
    /**
     * 密码错误
     */
    public final static int Login_Result_PassowrdError = 3;
    
    /**
     * 验证码输入错误
     */
    public final static int Login_Result_CheckCodeError = 4;
    
    
    /**
     * 用户登录成功
     */
    public final static int LOGIN_RESULT_SUCCESSED = 5;
    
    /**
     * 账号被锁定,请联系管理员
     */
    public final static int Login_Result_Lock = 6;
    
    
    
    /**
     * 账号不允许登录,请联系管理员
     */
    public final static int Login_Result_NoAllow = 7;
    
    /**
     * 密码与初始密码一致
     */
    public final static int Login_Result_InitPwd = 8;
    
    /**
     * 账号过期
     */
    public final static int Login_out_time = 9;
    
    /**
     * 账号所属客户被禁用
     * */
    public final static int Login_Customer_Disable = 10;
    
    public final static Map<Integer, String> Login_Result_Info = new HashMap<Integer, String>();
    static {
        Login_Result_Info.put(LOGIN_RESULT_USERNAME_IS_EMPTY, "用户名不能为空");
        Login_Result_Info.put(LOGIN_RESULT_PASSWORD_IS_EMPTY, "密码不能为空");
        Login_Result_Info.put(Login_Result_UserNameNotExists, "用户名不存在");
        Login_Result_Info.put(Login_Result_PassowrdError, "密码错误");
        Login_Result_Info.put(Login_Result_CheckCodeError, "验证码输入错误");
        Login_Result_Info.put(LOGIN_RESULT_SUCCESSED, "用户登录成功");
        Login_Result_Info.put(Login_Result_Lock, "该账号被锁定");
        Login_Result_Info.put(Login_Result_NoAllow, "该账号不允许登录");
        Login_Result_Info.put(Login_out_time, "该账号已过有效期");
        Login_Result_Info.put(Login_Customer_Disable, "账号所属客户被禁用");
    }
    //登录后的用户信息
    private WebLoginUser user;
    //登录结果
    private int result;
    
    
    public WebLoginUser getUser() {
        return user;
    }
    public void setUser(WebLoginUser user) {
        this.user = user;
    }
    public int getResult() {
        return result;
    }
    public void setResult(int result) {
        this.result = result;
    }
}