luodangjia
2024-11-06 d6ef18f23c4b298cb9b977ab3a5d65e2f4a39fe2
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
package com.ruoyi.common.core.enums;
 
/**
 * @author HJL
 */
 
public enum CodeEnum {
    /**
     * 成功
     */
    SUCCESS(0),
    /**
     * 失败
     */
    ERROR(1);
 
    private final Integer code;
 
    private CodeEnum(Integer code) {
        this.code = code;
    }
 
    public Integer getCode() {
        return this.code;
    }
}