Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.oneone.alert.common;
|
||||
|
||||
|
||||
public class AlertConstant {
|
||||
public static final String ACTION_DATA_TOPIC="actionDataLog";
|
||||
public static final String ACTION_DATA_GROUP="actionDataGroup";
|
||||
public static final String USER_BEHAVIOR_TOPIC="user-behavior";
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.oneone.alert.common;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author mice
|
||||
* @version 1.0
|
||||
* @date 2022-03-24 19:13
|
||||
*/
|
||||
public enum EventStatusEnum {
|
||||
NO_SEND(0,"未发送"),
|
||||
SENT(1,"已经发送"),
|
||||
DEAL(2,"已处理"),
|
||||
;
|
||||
|
||||
EventStatusEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@Getter
|
||||
private Integer code;
|
||||
@Getter
|
||||
private String desc;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.oneone.alert.common;
|
||||
|
||||
/**
|
||||
* @author mice
|
||||
* @version 1.0
|
||||
* @date 2022-04-20 13:51
|
||||
*/
|
||||
public interface FeishuConstants {
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
String LOGIN_URL = "https://open.feishu.cn/open-apis/auth/v3/app_access_token/internal";
|
||||
|
||||
/**
|
||||
* 发送消息
|
||||
*/
|
||||
String MESSAGES = "https://open.feishu.cn/open-apis/im/v1/messages";
|
||||
|
||||
/**
|
||||
* 群发
|
||||
*/
|
||||
String BATCH_SEND = "https://open.feishu.cn/open-apis/message/v4/batch_send/";
|
||||
|
||||
/**
|
||||
* 群发
|
||||
*/
|
||||
String QUERY_UID = "https://open.feishu.cn/open-apis/contact/v3/users/batch_get_id";
|
||||
}
|
||||
Reference in New Issue
Block a user