puzhibing
2026-05-12 08cc6d5cf7e93b75cfabe7dcc2aeaa9afa1117eb
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
package com.xiaopeng.common.log.enums;
 
/**
 * 管理后台操作类型
 */
public enum AdminOperationType {
    OTHER(99, "其他"),
    ADD(1, "新增"),
    EDIT(2, "编辑"),
    DELETE(3, "删除"),
    IMPORT(4, "导入"),
    EXPORT(5, "导出"),
    FREEZE(6, "冻结"),
    UNFREEZE(7, "解冻"),
    ENABLE(8, "启用"),
    DISABLE(9, "禁用"),
    BATCH_FREEZE(10, "批量冻结"),
    RESET_PASSWORD(11, "重置密码"),
    AUDIT(12, "审核"),
    SWITCH_STATUS(13, "启用/禁用"),
    RELEASE(14, "发布"),
    ISSUE(15, "发放");
 
    private final int code;
    private final String desc;
 
    AdminOperationType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
 
    public int getCode() {
        return code;
    }
 
    public String getDesc() {
        return desc;
    }
}