yangys
2025-11-18 8e944cfabb253fc2556588e308e282586043f7b0
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
package com.qianwen.smartman.modules.auth.enums;
 
import com.qianwen.smartman.modules.auth.utils.TokenUtil;
 
public enum UserEnum {
    WEB(TokenUtil.DEFAULT_USER_TYPE, 1),
    APP("app", 2),
    OTHER("other", 3);
    
    final String name;
    final int category;
 
    UserEnum(final String name, final int category) {
        this.name = name;
        this.category = category;
    }
 
    public String getName() {
        return this.name;
    }
 
    public int getCategory() {
        return this.category;
    }
}