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
package com.ycl.common.enums.business;
 
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
 
/**
 * 任务处理人类型
 *
 * @author:xp
 * @date:2024/11/29 11:13
 */
@Getter
public enum HandlerTypeEnum {
 
    USER("USER", "用户"),
    DEPT("DEPT", "部门"),
    ROLE("ROLE", "角色")
    ;
 
    @JsonValue
    private final String value;
 
    private final String desc;
 
    HandlerTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}