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; } }