4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
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
package com.utils;
 
/**
 * @项目名称: wyait-manage
 * @类名称: IStatusMessage
 * @类描述:响应状态信息
 * @创建时间: 2018年1月4日11:04:17
 * @version:
 */
public interface IStatusMessage {
    
    String getCode();
 
    String getMessage();
    
    public enum SystemStatus implements IStatusMessage{
 
        SUCCESS("1000","SUCCESS"), //请求成功
        ERROR("1001","ERROR"),       //请求失败
        PARAM_ERROR("1002","PARAM_ERROR"), //请求参数有误
        SUCCESS_MATCH("1003","SUCCESS_MATCH"), //表示成功匹配
        NO_LOGIN("1100","NO_LOGIN"), //未登录
        MANY_LOGINS("1101","MANY_LOGINS"), //多用户在线(踢出用户)
        UPDATE("1102","UPDATE"), //用户信息或权限已更新(退出重新登录)
        LOCK("1111","LOCK"); //用户已锁定
        private String code;
        private String message;
 
        private SystemStatus(String code,String message){
            this.code = code;
            this.message = message;
        }
 
        public String getCode(){
            return this.code;
        }
 
        public String getMessage(){
            return this.message;
        }
    }
}