mirror of https://github.com/ZhongFuCheng3y/austin
parent
48e39cfb87
commit
7b7bd8483a
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.constant;
|
package com.java3y.austin.common.constant;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.common.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.common.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,6 +1,6 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.common.domain;
|
||||||
|
|
||||||
import com.java3y.austin.dto.ContentModel;
|
import com.java3y.austin.common.dto.ContentModel;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发送内容的模型
|
* 发送内容的模型
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.dto;
|
package com.java3y.austin.common.dto;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
|
|
||||||
import com.java3y.austin.dto.*;
|
import com.java3y.austin.common.dto.*;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.common.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,6 +1,6 @@
|
|||||||
package com.java3y.austin.vo;
|
package com.java3y.austin.common.vo;
|
||||||
|
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.java3y.austin.cron.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 每一行csv的记录
|
||||||
|
* @author 3y
|
||||||
|
* @date 2022/2/9
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class CrowdInfoVo implements Serializable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接收者id
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数信息
|
||||||
|
*/
|
||||||
|
private Map<String, String> params;
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.java3y.austin.cron.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 3y
|
||||||
|
* @date 2022/2/9
|
||||||
|
* 具体处理定时任务逻辑的Handler
|
||||||
|
*/
|
||||||
|
public interface TaskHandler {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理具体的逻辑
|
||||||
|
*
|
||||||
|
* @param messageTemplateId
|
||||||
|
*/
|
||||||
|
void handle(Long messageTemplateId);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.java3y.austin.cron.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.java3y.austin.cron.domain.CrowdInfoVo;
|
||||||
|
import com.java3y.austin.cron.service.TaskHandler;
|
||||||
|
import com.java3y.austin.cron.utils.ReadFileUtils;
|
||||||
|
import com.java3y.austin.support.dao.MessageTemplateDao;
|
||||||
|
import com.java3y.austin.support.domain.MessageTemplate;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.scheduling.annotation.Async;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 3y
|
||||||
|
* @date 2022/2/9
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class TaskHandlerImpl implements TaskHandler {
|
||||||
|
@Autowired
|
||||||
|
private MessageTemplateDao messageTemplateDao;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Async
|
||||||
|
public void handle(Long messageTemplateId) {
|
||||||
|
MessageTemplate messageTemplate = messageTemplateDao.findById(messageTemplateId).get();
|
||||||
|
if (messageTemplate == null || StrUtil.isBlank(messageTemplate.getCronCrowdPath())) {
|
||||||
|
log.error("TaskHandler#handle crowdPath empty!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
List<CrowdInfoVo> csvRowList = ReadFileUtils.getCsvRowList(messageTemplate.getCronCrowdPath());
|
||||||
|
|
||||||
|
if (CollUtil.isNotEmpty(csvRowList)) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
log.info("csv info:", JSON.toJSONString(csvRowList));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.constants;
|
package com.java3y.austin.cron.xxl.constants;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.entity;
|
package com.java3y.austin.cron.xxl.entity;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.entity;
|
package com.java3y.austin.cron.xxl.entity;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.cron.xxl.enums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 执行阻塞队列
|
* 执行阻塞队列
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.cron.xxl.enums;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.cron.xxl.enums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调度过期策略
|
* 调度过期策略
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.cron.xxl.enums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调度类型
|
* 调度类型
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.config;
|
package com.java3y.austin.handler.config;
|
||||||
|
|
||||||
import com.java3y.austin.pending.Task;
|
import com.java3y.austin.handler.pending.Task;
|
||||||
import com.java3y.austin.receiver.Receiver;
|
import com.java3y.austin.handler.receiver.Receiver;
|
||||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.config;
|
package com.java3y.austin.handler.config;
|
||||||
|
|
||||||
import cn.hutool.core.thread.ExecutorBuilder;
|
import cn.hutool.core.thread.ExecutorBuilder;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.service.deduplication;
|
package com.java3y.austin.handler.deduplication;
|
||||||
|
|
||||||
import com.java3y.austin.service.deduplication.build.Builder;
|
import com.java3y.austin.handler.deduplication.build.Builder;
|
||||||
import com.java3y.austin.service.deduplication.service.DeduplicationService;
|
import com.java3y.austin.handler.deduplication.service.DeduplicationService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
@ -1,11 +1,11 @@
|
|||||||
package com.java3y.austin.service.deduplication;
|
package com.java3y.austin.handler.deduplication;
|
||||||
|
|
||||||
import com.ctrip.framework.apollo.Config;
|
import com.ctrip.framework.apollo.Config;
|
||||||
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.enums.DeduplicationType;
|
||||||
import com.java3y.austin.enums.DeduplicationType;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package com.java3y.austin.service.deduplication.build;
|
package com.java3y.austin.handler.deduplication.build;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.handler.deduplication.DeduplicationHolder;
|
||||||
import com.java3y.austin.service.deduplication.DeduplicationHolder;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.service.deduplication.build;
|
package com.java3y.austin.handler.deduplication.build;
|
||||||
|
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author luohaojie
|
* @author luohaojie
|
@ -1,9 +1,9 @@
|
|||||||
package com.java3y.austin.service.deduplication.build;
|
package com.java3y.austin.handler.deduplication.build;
|
||||||
|
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.enums.DeduplicationType;
|
||||||
import com.java3y.austin.enums.DeduplicationType;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
package com.java3y.austin.service.deduplication.build;
|
package com.java3y.austin.handler.deduplication.build;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.enums.DeduplicationType;
|
||||||
import com.java3y.austin.enums.DeduplicationType;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
@ -1,13 +1,13 @@
|
|||||||
package com.java3y.austin.service.deduplication.service;
|
package com.java3y.austin.handler.deduplication.service;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import com.java3y.austin.domain.AnchorInfo;
|
import com.java3y.austin.common.domain.AnchorInfo;
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.handler.deduplication.DeduplicationHolder;
|
||||||
import com.java3y.austin.service.deduplication.DeduplicationHolder;
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
import com.java3y.austin.utils.LogUtils;
|
import com.java3y.austin.support.utils.LogUtils;
|
||||||
import com.java3y.austin.utils.RedisUtils;
|
import com.java3y.austin.support.utils.RedisUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package com.java3y.austin.service.deduplication.service;
|
package com.java3y.austin.handler.deduplication.service;
|
||||||
|
|
||||||
import cn.hutool.crypto.digest.DigestUtil;
|
import cn.hutool.crypto.digest.DigestUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.DeduplicationType;
|
import com.java3y.austin.common.enums.DeduplicationType;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,6 +1,7 @@
|
|||||||
package com.java3y.austin.service.deduplication.service;
|
package com.java3y.austin.handler.deduplication.service;
|
||||||
|
|
||||||
import com.java3y.austin.domain.DeduplicationParam;
|
|
||||||
|
import com.java3y.austin.handler.domain.DeduplicationParam;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author huskey
|
* @author huskey
|
@ -1,8 +1,8 @@
|
|||||||
package com.java3y.austin.service.deduplication.service;
|
package com.java3y.austin.handler.deduplication.service;
|
||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.DeduplicationType;
|
import com.java3y.austin.common.enums.DeduplicationType;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,14 +1,14 @@
|
|||||||
package com.java3y.austin.service.discard;
|
package com.java3y.austin.handler.discard;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.ctrip.framework.apollo.Config;
|
import com.ctrip.framework.apollo.Config;
|
||||||
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import com.java3y.austin.domain.AnchorInfo;
|
import com.java3y.austin.common.domain.AnchorInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import com.java3y.austin.utils.LogUtils;
|
import com.java3y.austin.support.utils.LogUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,7 +1,8 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.handler.domain;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.handler.domain;
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.handler.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,9 +1,9 @@
|
|||||||
package com.java3y.austin.handler;
|
package com.java3y.austin.handler.handler;
|
||||||
|
|
||||||
import com.java3y.austin.domain.AnchorInfo;
|
import com.java3y.austin.common.domain.AnchorInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import com.java3y.austin.utils.LogUtils;
|
import com.java3y.austin.support.utils.LogUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
@ -1,14 +1,13 @@
|
|||||||
package com.java3y.austin.handler;
|
package com.java3y.austin.handler.handler;
|
||||||
|
|
||||||
|
|
||||||
import cn.hutool.extra.mail.MailAccount;
|
import cn.hutool.extra.mail.MailAccount;
|
||||||
import cn.hutool.extra.mail.MailUtil;
|
import cn.hutool.extra.mail.MailUtil;
|
||||||
|
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.dto.EmailContentModel;
|
import com.java3y.austin.common.dto.EmailContentModel;
|
||||||
import com.java3y.austin.enums.ChannelType;
|
import com.java3y.austin.common.enums.ChannelType;
|
||||||
import com.java3y.austin.utils.AccountUtils;
|
import com.java3y.austin.support.utils.AccountUtils;
|
||||||
import com.sun.mail.util.MailSSLSocketFactory;
|
import com.sun.mail.util.MailSSLSocketFactory;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,6 +1,6 @@
|
|||||||
package com.java3y.austin.handler;
|
package com.java3y.austin.handler.handler;
|
||||||
|
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.handler;
|
package com.java3y.austin.handler.handler;
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
@ -1,11 +1,11 @@
|
|||||||
package com.java3y.austin.pending;
|
package com.java3y.austin.handler.pending;
|
||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.handler.HandlerHolder;
|
import com.java3y.austin.handler.deduplication.DeduplicationRuleService;
|
||||||
import com.java3y.austin.service.deduplication.DeduplicationRuleService;
|
import com.java3y.austin.handler.discard.DiscardMessageService;
|
||||||
import com.java3y.austin.service.discard.DiscardMessageService;
|
import com.java3y.austin.handler.handler.HandlerHolder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.pending;
|
package com.java3y.austin.handler.pending;
|
||||||
|
|
||||||
import com.java3y.austin.config.ThreadPoolConfig;
|
import com.java3y.austin.handler.config.ThreadPoolConfig;
|
||||||
import com.java3y.austin.utils.GroupIdMappingUtils;
|
import com.java3y.austin.handler.utils.GroupIdMappingUtils;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
@ -1,14 +1,14 @@
|
|||||||
package com.java3y.austin.receiver;
|
package com.java3y.austin.handler.receiver;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.java3y.austin.domain.AnchorInfo;
|
import com.java3y.austin.common.domain.AnchorInfo;
|
||||||
import com.java3y.austin.domain.LogParam;
|
import com.java3y.austin.common.domain.LogParam;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.AnchorState;
|
import com.java3y.austin.common.enums.AnchorState;
|
||||||
import com.java3y.austin.pending.Task;
|
import com.java3y.austin.handler.pending.Task;
|
||||||
import com.java3y.austin.pending.TaskPendingHolder;
|
import com.java3y.austin.handler.pending.TaskPendingHolder;
|
||||||
import com.java3y.austin.utils.GroupIdMappingUtils;
|
import com.java3y.austin.handler.utils.GroupIdMappingUtils;
|
||||||
import com.java3y.austin.utils.LogUtils;
|
import com.java3y.austin.support.utils.LogUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,6 +1,6 @@
|
|||||||
package com.java3y.austin.receiver;
|
package com.java3y.austin.handler.receiver;
|
||||||
|
|
||||||
import com.java3y.austin.utils.GroupIdMappingUtils;
|
import com.java3y.austin.handler.utils.GroupIdMappingUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
@ -1,10 +1,12 @@
|
|||||||
package com.java3y.austin.script;
|
package com.java3y.austin.handler.script;
|
||||||
|
|
||||||
import com.java3y.austin.domain.SmsParam;
|
|
||||||
import com.java3y.austin.domain.SmsRecord;
|
import com.java3y.austin.handler.domain.SmsParam;
|
||||||
|
import com.java3y.austin.support.domain.SmsRecord;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信脚本 接口
|
* 短信脚本 接口
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,14 +1,14 @@
|
|||||||
package com.java3y.austin.script;
|
package com.java3y.austin.handler.script;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.ArrayUtil;
|
import cn.hutool.core.util.ArrayUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import com.java3y.austin.domain.SmsParam;
|
import com.java3y.austin.common.enums.SmsStatus;
|
||||||
import com.java3y.austin.domain.SmsRecord;
|
import com.java3y.austin.handler.domain.SmsParam;
|
||||||
import com.java3y.austin.domain.TencentSmsParam;
|
import com.java3y.austin.handler.domain.TencentSmsParam;
|
||||||
import com.java3y.austin.enums.SmsStatus;
|
import com.java3y.austin.support.domain.SmsRecord;
|
||||||
import com.java3y.austin.utils.AccountUtils;
|
import com.java3y.austin.support.utils.AccountUtils;
|
||||||
import com.tencentcloudapi.common.Credential;
|
import com.tencentcloudapi.common.Credential;
|
||||||
import com.tencentcloudapi.common.profile.ClientProfile;
|
import com.tencentcloudapi.common.profile.ClientProfile;
|
||||||
import com.tencentcloudapi.common.profile.HttpProfile;
|
import com.tencentcloudapi.common.profile.HttpProfile;
|
@ -1,9 +1,9 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.handler.utils;
|
||||||
|
|
||||||
|
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.enums.ChannelType;
|
import com.java3y.austin.common.enums.ChannelType;
|
||||||
import com.java3y.austin.enums.MessageType;
|
import com.java3y.austin.common.enums.MessageType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,17 +1,17 @@
|
|||||||
package com.java3y.austin.action;
|
package com.java3y.austin.service.api.impl.action;
|
||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.util.ReUtil;
|
import cn.hutool.core.util.ReUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.java3y.austin.domain.SendTaskModel;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.enums.ChannelType;
|
||||||
import com.java3y.austin.enums.ChannelType;
|
import com.java3y.austin.common.enums.IdType;
|
||||||
import com.java3y.austin.enums.IdType;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import com.java3y.austin.pipeline.BusinessProcess;
|
import com.java3y.austin.service.api.impl.domain.SendTaskModel;
|
||||||
import com.java3y.austin.pipeline.ProcessContext;
|
import com.java3y.austin.support.pipeline.BusinessProcess;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.support.pipeline.ProcessContext;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
@ -1,24 +1,24 @@
|
|||||||
package com.java3y.austin.action;
|
package com.java3y.austin.service.api.impl.action;
|
||||||
|
|
||||||
import cn.hutool.core.util.ReflectUtil;
|
import cn.hutool.core.util.ReflectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import com.java3y.austin.dao.MessageTemplateDao;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
import com.java3y.austin.domain.MessageParam;
|
import com.java3y.austin.common.dto.ContentModel;
|
||||||
import com.java3y.austin.domain.MessageTemplate;
|
import com.java3y.austin.common.enums.ChannelType;
|
||||||
import com.java3y.austin.domain.SendTaskModel;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import com.java3y.austin.domain.TaskInfo;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import com.java3y.austin.dto.ContentModel;
|
import com.java3y.austin.service.api.domain.MessageParam;
|
||||||
import com.java3y.austin.enums.ChannelType;
|
import com.java3y.austin.service.api.impl.domain.SendTaskModel;
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.support.dao.MessageTemplateDao;
|
||||||
import com.java3y.austin.pipeline.BusinessProcess;
|
import com.java3y.austin.support.domain.MessageTemplate;
|
||||||
import com.java3y.austin.pipeline.ProcessContext;
|
import com.java3y.austin.support.pipeline.BusinessProcess;
|
||||||
import com.java3y.austin.utils.ContentHolderUtil;
|
import com.java3y.austin.support.pipeline.ProcessContext;
|
||||||
import com.java3y.austin.utils.TaskInfoUtils;
|
import com.java3y.austin.support.utils.ContentHolderUtil;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.support.utils.TaskInfoUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
package com.java3y.austin.action;
|
package com.java3y.austin.service.api.impl.action;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.java3y.austin.domain.MessageParam;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import com.java3y.austin.domain.SendTaskModel;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.service.api.domain.MessageParam;
|
||||||
import com.java3y.austin.pipeline.BusinessProcess;
|
import com.java3y.austin.service.api.impl.domain.SendTaskModel;
|
||||||
import com.java3y.austin.pipeline.ProcessContext;
|
import com.java3y.austin.support.pipeline.BusinessProcess;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.support.pipeline.ProcessContext;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,13 +1,13 @@
|
|||||||
package com.java3y.austin.action;
|
package com.java3y.austin.service.api.impl.action;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
import com.java3y.austin.domain.SendTaskModel;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import com.java3y.austin.pipeline.BusinessProcess;
|
import com.java3y.austin.service.api.impl.domain.SendTaskModel;
|
||||||
import com.java3y.austin.pipeline.ProcessContext;
|
import com.java3y.austin.support.pipeline.BusinessProcess;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.support.pipeline.ProcessContext;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
@ -1,13 +1,14 @@
|
|||||||
package com.java3y.austin.config;
|
package com.java3y.austin.service.api.impl.config;
|
||||||
|
|
||||||
import com.java3y.austin.action.AfterParamCheckAction;
|
|
||||||
import com.java3y.austin.action.AssembleAction;
|
import com.java3y.austin.service.api.enums.BusinessCode;
|
||||||
import com.java3y.austin.action.PreParamCheckAction;
|
import com.java3y.austin.service.api.impl.action.AfterParamCheckAction;
|
||||||
import com.java3y.austin.action.SendMqAction;
|
import com.java3y.austin.service.api.impl.action.AssembleAction;
|
||||||
import com.java3y.austin.enums.BusinessCode;
|
import com.java3y.austin.service.api.impl.action.PreParamCheckAction;
|
||||||
import com.java3y.austin.pipeline.BusinessProcess;
|
import com.java3y.austin.service.api.impl.action.SendMqAction;
|
||||||
import com.java3y.austin.pipeline.ProcessController;
|
import com.java3y.austin.support.pipeline.BusinessProcess;
|
||||||
import com.java3y.austin.pipeline.ProcessTemplate;
|
import com.java3y.austin.support.pipeline.ProcessController;
|
||||||
|
import com.java3y.austin.support.pipeline.ProcessTemplate;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
@ -1,6 +1,8 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.service.api.impl.domain;
|
||||||
|
|
||||||
import com.java3y.austin.pipeline.ProcessModel;
|
import com.java3y.austin.common.domain.TaskInfo;
|
||||||
|
import com.java3y.austin.service.api.domain.MessageParam;
|
||||||
|
import com.java3y.austin.support.pipeline.ProcessModel;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,13 +1,14 @@
|
|||||||
package com.java3y.austin.service;
|
package com.java3y.austin.service.api.impl.service;
|
||||||
|
|
||||||
import cn.monitor4all.logRecord.annotation.OperationLog;
|
import cn.monitor4all.logRecord.annotation.OperationLog;
|
||||||
import com.java3y.austin.domain.BatchSendRequest;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import com.java3y.austin.domain.SendRequest;
|
import com.java3y.austin.service.api.domain.BatchSendRequest;
|
||||||
import com.java3y.austin.domain.SendResponse;
|
import com.java3y.austin.service.api.domain.SendRequest;
|
||||||
import com.java3y.austin.domain.SendTaskModel;
|
import com.java3y.austin.service.api.domain.SendResponse;
|
||||||
import com.java3y.austin.pipeline.ProcessContext;
|
import com.java3y.austin.service.api.impl.domain.SendTaskModel;
|
||||||
import com.java3y.austin.pipeline.ProcessController;
|
import com.java3y.austin.service.api.service.SendService;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.support.pipeline.ProcessContext;
|
||||||
|
import com.java3y.austin.support.pipeline.ProcessController;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.service.api.domain;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.service.api.domain;
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.service.api.domain;
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.service.api.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.enums;
|
package com.java3y.austin.service.api.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,8 +1,8 @@
|
|||||||
package com.java3y.austin.service;
|
package com.java3y.austin.service.api.service;
|
||||||
|
|
||||||
import com.java3y.austin.domain.BatchSendRequest;
|
import com.java3y.austin.service.api.domain.BatchSendRequest;
|
||||||
import com.java3y.austin.domain.SendRequest;
|
import com.java3y.austin.service.api.domain.SendRequest;
|
||||||
import com.java3y.austin.domain.SendResponse;
|
import com.java3y.austin.service.api.domain.SendResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发送接口
|
* 发送接口
|
@ -1,11 +1,12 @@
|
|||||||
package com.java3y.austin.dao;
|
package com.java3y.austin.support.dao;
|
||||||
|
|
||||||
import com.java3y.austin.domain.MessageTemplate;
|
import com.java3y.austin.support.domain.MessageTemplate;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息模板Dao
|
* 消息模板Dao
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,6 +1,7 @@
|
|||||||
package com.java3y.austin.dao;
|
package com.java3y.austin.support.dao;
|
||||||
|
|
||||||
import com.java3y.austin.domain.SmsRecord;
|
|
||||||
|
import com.java3y.austin.support.domain.SmsRecord;
|
||||||
import org.springframework.data.repository.CrudRepository;
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.support.domain;
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.domain;
|
package com.java3y.austin.support.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.pipeline;
|
package com.java3y.austin.support.pipeline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务执行器
|
* 业务执行器
|
@ -1,6 +1,6 @@
|
|||||||
package com.java3y.austin.pipeline;
|
package com.java3y.austin.support.pipeline;
|
||||||
|
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,13 +1,12 @@
|
|||||||
package com.java3y.austin.pipeline;
|
package com.java3y.austin.support.pipeline;
|
||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.java3y.austin.enums.RespStatusEnum;
|
import com.java3y.austin.common.enums.RespStatusEnum;
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
import com.java3y.austin.common.vo.BasicResultVO;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,8 +1,6 @@
|
|||||||
package com.java3y.austin.pipeline;
|
package com.java3y.austin.support.pipeline;
|
||||||
|
|
||||||
|
|
||||||
import com.java3y.austin.vo.BasicResultVO;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 真正存储着责任链的数据
|
* 真正存储着责任链的数据
|
||||||
* @author 3y
|
* @author 3y
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.pipeline;
|
package com.java3y.austin.support.pipeline;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ctrip.framework.apollo.Config;
|
import com.ctrip.framework.apollo.Config;
|
||||||
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import org.springframework.context.expression.MapAccessor;
|
import org.springframework.context.expression.MapAccessor;
|
||||||
import org.springframework.expression.spel.support.StandardEvaluationContext;
|
import org.springframework.expression.spel.support.StandardEvaluationContext;
|
@ -1,10 +1,10 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import cn.monitor4all.logRecord.bean.LogDTO;
|
import cn.monitor4all.logRecord.bean.LogDTO;
|
||||||
import cn.monitor4all.logRecord.service.CustomLogListener;
|
import cn.monitor4all.logRecord.service.CustomLogListener;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.java3y.austin.domain.AnchorInfo;
|
import com.java3y.austin.common.domain.AnchorInfo;
|
||||||
import com.java3y.austin.domain.LogParam;
|
import com.java3y.austin.common.domain.LogParam;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import cn.hutool.core.map.MapUtil;
|
import cn.hutool.core.map.MapUtil;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
@ -1,4 +1,4 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
@ -1,7 +1,7 @@
|
|||||||
package com.java3y.austin.utils;
|
package com.java3y.austin.support.utils;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.java3y.austin.constant.AustinConstant;
|
import com.java3y.austin.common.constant.AustinConstant;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
@ -1,9 +1,11 @@
|
|||||||
package com.java3y.austin.controller;
|
package com.java3y.austin.web.controller;
|
||||||
|
|
||||||
import com.java3y.austin.domain.SendRequest;
|
|
||||||
import com.java3y.austin.domain.SendResponse;
|
import com.java3y.austin.service.api.domain.SendRequest;
|
||||||
import com.java3y.austin.service.SendService;
|
import com.java3y.austin.service.api.domain.SendResponse;
|
||||||
import io.swagger.annotations.*;
|
import com.java3y.austin.service.api.service.SendService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue