Administrator
2026-06-05 5ddcc170c56f34fd450980a51c8997ff0029df72
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
package com.xcong.excoin.utils.dingtalk;
 
/**
 * 钉钉通知类型枚举,用于区分不同的业务通知场景。
 */
public enum DingTalkType {
 
    PAY_CONFIRM("充值确认", 1),
    FAST_SALE("快速卖出", 2),
    TI_COIN("提币通知", 3),
    CARD_VERIFY("实名认证", 4),
    BLOCK_COIN("链上转账通知", 5);
 
    private final String name;
    private final int index;
 
    DingTalkType(String name, int index) {
        this.name = name;
        this.index = index;
    }
 
    public String getName() { return name; }
    public int getIndex() { return index; }
 
    public static DingTalkType byIndex(int index) {
        for (DingTalkType type : values()) {
            if (type.index == index) {
                return type;
            }
        }
        return null;
    }
}