mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 03:11:44 +08:00
feat: 定时报告发送至飞书群聊
This commit is contained in:
@@ -32,4 +32,6 @@ public class XpackEmailTaskRequest extends XpackTaskCreateRequest {
|
||||
private String conditions;
|
||||
|
||||
private String viewDataRange = "view";
|
||||
|
||||
private String groups;
|
||||
}
|
||||
|
||||
@@ -35,4 +35,6 @@ public class XpackEmailTemplateDTO implements Serializable {
|
||||
|
||||
private Boolean status;
|
||||
|
||||
private String groups;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package io.dataease.plugins.xpack.lark.dto.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LarkGroupData implements Serializable {
|
||||
|
||||
private boolean has_more;
|
||||
|
||||
private String page_token;
|
||||
|
||||
private List<LarkGroupItem> items;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package io.dataease.plugins.xpack.lark.dto.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class LarkGroupHttpResult extends LarkBaseResult implements Serializable {
|
||||
|
||||
private LarkGroupData data;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package io.dataease.plugins.xpack.lark.dto.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class LarkGroupItem implements Serializable {
|
||||
|
||||
private String chat_id;
|
||||
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.dataease.plugins.xpack.lark.dto.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LarkGroupResult implements Serializable {
|
||||
|
||||
private boolean valid;
|
||||
|
||||
private List<LarkGroupItem> groupList;
|
||||
}
|
||||
@@ -2,13 +2,13 @@ package io.dataease.plugins.xpack.lark.service;
|
||||
|
||||
import io.dataease.plugins.common.service.PluginComponentService;
|
||||
import io.dataease.plugins.xpack.display.dto.response.SysSettingDto;
|
||||
import io.dataease.plugins.xpack.lark.dto.entity.LarkGroupResult;
|
||||
import io.dataease.plugins.xpack.lark.dto.entity.LarkMsgResult;
|
||||
import io.dataease.plugins.xpack.lark.dto.entity.LarkQrResult;
|
||||
import io.dataease.plugins.xpack.lark.dto.entity.LarkUserInfo;
|
||||
import io.dataease.plugins.xpack.lark.dto.response.LarkAppUserResult;
|
||||
import io.dataease.plugins.xpack.lark.dto.response.LarkInfo;
|
||||
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
@@ -33,4 +33,8 @@ public abstract class LarkXpackService extends PluginComponentService {
|
||||
public abstract LarkMsgResult pushMsg(List<String> userIds, String message);
|
||||
|
||||
public abstract LarkMsgResult pushOaMsg(List<String> userIds, String title, String content, byte[] bytes, List<File> files);
|
||||
|
||||
public abstract List<LarkMsgResult> pushChatOaMsg(List<String> groupList, String title, String content, byte[] bytes, List<File> files);
|
||||
|
||||
public abstract LarkGroupResult getGroup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user