Compare commits
6 Commits
LiMingyu_b
...
develop
| Author | SHA1 | Date |
|---|---|---|
|
|
f48bab7141 | 1 year ago |
|
|
690fb1707a | 1 year ago |
|
|
193ecbd6d5 | 1 year ago |
|
|
9f00332617 | 1 year ago |
|
|
2b2046a539 | 1 year ago |
|
|
ff1aa12171 | 1 year ago |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 4.1 MiB |
@ -1,70 +1,60 @@
|
||||
package com.xcs.wx.config;
|
||||
|
||||
import com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException; // 导入动态数据源异常类
|
||||
import com.xcs.wx.domain.vo.ResponseVO; // 导入自定义的响应VO类
|
||||
import com.xcs.wx.exception.BizException; // 导入自定义的业务异常类
|
||||
import lombok.extern.slf4j.Slf4j; // 导入lombok提供的日志注解
|
||||
import org.mybatis.spring.MyBatisSystemException; // 导入MyBatis系统异常类
|
||||
import org.springframework.http.HttpStatus; // 导入Spring的HTTP状态码类
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler; // 导入Spring的异常处理器注解
|
||||
import org.springframework.web.bind.annotation.ResponseStatus; // 导入Spring的响应状态注解
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice; // 导入Spring的全局异常处理注解
|
||||
import com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException;
|
||||
import com.xcs.wx.domain.vo.ResponseVO;
|
||||
import com.xcs.wx.exception.BizException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.mybatis.spring.MyBatisSystemException;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
|
||||
/**
|
||||
* 全局异常处理配置类
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月25日 17时29分
|
||||
**/
|
||||
@Slf4j // 使用lombok提供的日志注解
|
||||
@RestControllerAdvice // 声明这是一个全局异常处理的RestControllerAdvice
|
||||
@ResponseStatus(HttpStatus.OK) // 设置默认的响应状态码为OK
|
||||
@Slf4j
|
||||
@RestControllerAdvice
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
public class ExceptionAdviceConfig {
|
||||
|
||||
/**
|
||||
* 捕获并处理BizException异常
|
||||
* @param e 抛出的BizException异常
|
||||
* @return 自定义的响应VO对象
|
||||
* 捕获BizException异常
|
||||
**/
|
||||
@ExceptionHandler(BizException.class) // 指定这个方法处理BizException异常
|
||||
@ExceptionHandler(BizException.class)
|
||||
public ResponseVO<String> handleException(BizException e) {
|
||||
return ResponseVO.error(e.getCode(), e.getMsg()); // 返回异常的错误码和消息
|
||||
return ResponseVO.error(e.getCode(), e.getMsg());
|
||||
}
|
||||
|
||||
/**
|
||||
* 捕获并处理MyBatisSystemException异常
|
||||
* @param e 抛出的MyBatisSystemException异常
|
||||
* @return 自定义的响应VO对象
|
||||
* 捕获MyBatisSystemException异常
|
||||
**/
|
||||
@ExceptionHandler(MyBatisSystemException.class) // 指定这个方法处理MyBatisSystemException异常
|
||||
@ExceptionHandler(MyBatisSystemException.class)
|
||||
public ResponseVO<String> myBatisSystemException(MyBatisSystemException e) {
|
||||
// 如果异常的原因是数据源未找到,则返回特定的错误消息
|
||||
// 数据库未就绪状态
|
||||
if (e.getCause().getCause() instanceof CannotFindDataSourceException) {
|
||||
return ResponseVO.error(-1, "微信数据库未就绪状态,请先点击左侧解密工具进行数据解密!");
|
||||
}
|
||||
log.error("mybatis system exception", e); // 记录异常日志
|
||||
return ResponseVO.error(-1, "系统异常"); // 返回系统异常的错误消息
|
||||
log.error("mybatis system exception", e);
|
||||
return ResponseVO.error(-1, "系统异常");
|
||||
}
|
||||
|
||||
/**
|
||||
* 捕获并处理RuntimeException异常
|
||||
* @param e 抛出的RuntimeException异常
|
||||
* @return 自定义的响应VO对象
|
||||
* 捕获RuntimeException异常
|
||||
**/
|
||||
@ExceptionHandler(RuntimeException.class) // 指定这个方法处理RuntimeException异常
|
||||
@ExceptionHandler(RuntimeException.class)
|
||||
public ResponseVO<String> handleException(RuntimeException e) {
|
||||
log.error("runtime exception", e); // 记录异常日志
|
||||
return ResponseVO.error(-1, "系统异常"); // 返回系统异常的错误消息
|
||||
log.error("runtime exception", e);
|
||||
return ResponseVO.error(-1, "系统异常");
|
||||
}
|
||||
|
||||
/**
|
||||
* 捕获并处理Exception异常
|
||||
* @param e 抛出的Exception异常
|
||||
* @return 自定义的响应VO对象
|
||||
* 捕获Exception异常
|
||||
**/
|
||||
@ExceptionHandler(Exception.class) // 指定这个方法处理Exception异常
|
||||
@ExceptionHandler(Exception.class)
|
||||
public ResponseVO<String> handleException(Exception e) {
|
||||
log.error("exception", e); // 记录异常日志
|
||||
return ResponseVO.error(-1, "系统异常"); // 返回系统异常的错误消息
|
||||
log.error("exception", e);
|
||||
return ResponseVO.error(-1, "系统异常");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* AllContactVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年02月07日 11时15分
|
||||
**/
|
||||
@Data
|
||||
public class AllContactVO {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 昵称。
|
||||
*/
|
||||
private String nickName;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* CardLinkVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月17日 14时50分
|
||||
**/
|
||||
@Data
|
||||
public class CardLinkVO {
|
||||
|
||||
/**
|
||||
* title
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* sourceDisplayName
|
||||
*/
|
||||
private String sourceDisplayName;
|
||||
|
||||
/**
|
||||
* des
|
||||
*/
|
||||
private String des;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
private String url;
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ChatRoomDetailVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月08日 16时10分
|
||||
**/
|
||||
@Data
|
||||
public class ChatRoomDetailVO {
|
||||
|
||||
/**
|
||||
* 群聊名称
|
||||
*/
|
||||
private String chatRoomName;
|
||||
|
||||
/**
|
||||
* 群聊标题
|
||||
*/
|
||||
private String chatRoomTitle;
|
||||
|
||||
/**
|
||||
* 自己在聊天室中的显示名称。
|
||||
*/
|
||||
private String selfDisplayName;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String reserved2;
|
||||
|
||||
/**
|
||||
* roomData
|
||||
*/
|
||||
@JsonIgnore
|
||||
private byte[] roomData;
|
||||
|
||||
/**
|
||||
* 群聊信息
|
||||
*/
|
||||
private ChatRoomInfoVO chatRoomInfo;
|
||||
|
||||
/**
|
||||
* 群成员
|
||||
*/
|
||||
private List<ChatRoomMemberVO> members;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ChatRoomMemberVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月08日 16时10分
|
||||
**/
|
||||
@Data
|
||||
public class ChatRoomMemberVO {
|
||||
|
||||
/**
|
||||
* wxId
|
||||
*/
|
||||
private String wxId;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImgUrl;
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ChatRoomVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月08日 16时10分
|
||||
**/
|
||||
@Data
|
||||
public class ChatRoomVO {
|
||||
|
||||
/**
|
||||
* 聊天室名称
|
||||
*/
|
||||
private String chatRoomName;
|
||||
|
||||
/**
|
||||
* 群聊标题
|
||||
*/
|
||||
private String chatRoomTitle;
|
||||
|
||||
/**
|
||||
* 是否显示名称的标志
|
||||
*/
|
||||
private Integer isShowName;
|
||||
|
||||
/**
|
||||
* 自己在聊天室中的显示名称。
|
||||
*/
|
||||
private String selfDisplayName;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 群聊是否已经解散
|
||||
*/
|
||||
private Boolean dissolution;
|
||||
|
||||
/**
|
||||
* 是否为企业微信群
|
||||
*/
|
||||
private Boolean enterprise;
|
||||
|
||||
/**
|
||||
* 群聊数据
|
||||
*/
|
||||
@JsonIgnore
|
||||
private byte[] roomData;
|
||||
|
||||
/**
|
||||
* 群聊人数
|
||||
*/
|
||||
private Integer memberCount;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ContactLabelVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月21日 18时13分
|
||||
**/
|
||||
@Data
|
||||
public class ContactLabelVO {
|
||||
|
||||
/**
|
||||
* 标签Id
|
||||
*/
|
||||
private String labelId;
|
||||
|
||||
/**
|
||||
* 标签名称
|
||||
*/
|
||||
private String labelName;
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ContactVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月22日 14时43分
|
||||
**/
|
||||
@Data
|
||||
public class ContactVO {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 别名。
|
||||
*/
|
||||
private String alias;
|
||||
|
||||
/**
|
||||
* 备注信息。
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 昵称。
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String describe;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 标签Id
|
||||
*/
|
||||
private String labelIdList;
|
||||
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
private List<String> labels;
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* CountRecentMsgsVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月06日 14时21分
|
||||
**/
|
||||
@Data
|
||||
public class CountRecentMsgsVO {
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
private Long value;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
private String category;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* DatabaseVO
|
||||
*
|
||||
* @author 林雷
|
||||
* @date 2024年6月28日11:08:45
|
||||
*/
|
||||
@Data
|
||||
public class DatabaseVO {
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private String fileSize;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* DecryptVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月21日 18时13分
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
public class DecryptVO {
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private String fileSize;
|
||||
|
||||
/**
|
||||
* 当前进度
|
||||
*/
|
||||
private int currentProgress;
|
||||
|
||||
/**
|
||||
* 总数量
|
||||
*/
|
||||
private int total;
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||
import com.alibaba.excel.annotation.write.style.ContentStyle;
|
||||
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ExportChatRoomVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月08日 16时10分
|
||||
**/
|
||||
@Data
|
||||
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
|
||||
public class ExportChatRoomVO {
|
||||
|
||||
/**
|
||||
* 群号
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("群号")
|
||||
private String chatRoomName;
|
||||
|
||||
/**
|
||||
* 群聊名称
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("群聊名称")
|
||||
private String chatRoomTitle;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("备注")
|
||||
private String selfDisplayName;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 群聊是否已经解散
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("群聊是否已经解散")
|
||||
private Boolean dissolution;
|
||||
|
||||
/**
|
||||
* 是否为企业微信群
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("是否为企业微信群")
|
||||
private Boolean enterprise;
|
||||
|
||||
/**
|
||||
* 群聊数据
|
||||
*/
|
||||
@ExcelIgnore
|
||||
private byte[] roomData;
|
||||
|
||||
/**
|
||||
* 群聊人数
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("群聊人数")
|
||||
private Integer memberCount;
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||
import com.alibaba.excel.annotation.write.style.ContentStyle;
|
||||
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ExportContactVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月22日 14时43分
|
||||
**/
|
||||
@Data
|
||||
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
|
||||
public class ExportContactVO {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("微信Id")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("微信号")
|
||||
private String alias;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
@ColumnWidth(30)
|
||||
@ExcelProperty("昵称")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("描述")
|
||||
private String describe;
|
||||
|
||||
/**
|
||||
* 标签Id
|
||||
*/
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty("标签Id")
|
||||
private String labelIdList;
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||
import com.alibaba.excel.annotation.write.style.ContentStyle;
|
||||
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ExportMsgVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月25日 16时16分
|
||||
**/
|
||||
@Data
|
||||
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
|
||||
public class ExportMsgVO {
|
||||
|
||||
/**
|
||||
* 消息服务器 ID
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("消息Id")
|
||||
private String msgSvrId;
|
||||
|
||||
/**
|
||||
* 聊天人Id
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("聊天人Id")
|
||||
private String wxId;
|
||||
|
||||
/**
|
||||
* 消息类型
|
||||
*/
|
||||
@ColumnWidth(10)
|
||||
@ExcelProperty("类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 消息子类型
|
||||
*/
|
||||
@ColumnWidth(10)
|
||||
@ExcelProperty("子类型")
|
||||
private Integer subType;
|
||||
|
||||
/**
|
||||
* 是否为发送者
|
||||
*/
|
||||
@ColumnWidth(15)
|
||||
@ExcelProperty("是否发送者")
|
||||
private Integer isSender;
|
||||
|
||||
/**
|
||||
* 消息创建时间
|
||||
*/
|
||||
@ColumnWidth(25)
|
||||
@ExcelProperty("创建时间")
|
||||
private String strCreateTime;
|
||||
|
||||
/**
|
||||
* 消息内容字符串
|
||||
*/
|
||||
@ColumnWidth(80)
|
||||
@ExcelProperty("消息内容")
|
||||
private String strContent;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* FeedsLocationVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月04日 14时25分
|
||||
**/
|
||||
@Data
|
||||
public class FeedsLocationVO {
|
||||
|
||||
/**
|
||||
* poiClassifyId
|
||||
*/
|
||||
private String poiClassifyId;
|
||||
|
||||
/**
|
||||
* poiName
|
||||
*/
|
||||
private String poiName;
|
||||
|
||||
/**
|
||||
* poiAddress
|
||||
*/
|
||||
private String poiAddress;
|
||||
|
||||
/**
|
||||
* poiClassifyType
|
||||
*/
|
||||
private Integer poiClassifyType;
|
||||
|
||||
/**
|
||||
* city
|
||||
*/
|
||||
private String city;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* FeedsMediaVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月04日 14时25分
|
||||
**/
|
||||
@Data
|
||||
public class FeedsMediaVO {
|
||||
|
||||
/**
|
||||
* 大图Url
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 缩略图Url
|
||||
*/
|
||||
private String thumb;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* MsgTypeDistributionVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月05日 15时25分
|
||||
**/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class MsgTypeDistributionVO {
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private Integer value;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* PageVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月29日 16时19分
|
||||
**/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class PageVO<T> {
|
||||
|
||||
/**
|
||||
* 当前页数
|
||||
*/
|
||||
private Long current;
|
||||
|
||||
/**
|
||||
* 页数大小
|
||||
*/
|
||||
private Long pageSize;
|
||||
|
||||
/**
|
||||
* 总页数
|
||||
*/
|
||||
private Long total;
|
||||
|
||||
/**
|
||||
* 查询条件
|
||||
*/
|
||||
private List<T> records;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* RecentUsedKeyWordVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月23日 11时27分
|
||||
**/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class RecentUsedKeyWordVO {
|
||||
|
||||
/**
|
||||
* 关键字
|
||||
*/
|
||||
private String text;
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ResponseVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月25日 17时31分
|
||||
**/
|
||||
@Data
|
||||
public class ResponseVO<T> {
|
||||
|
||||
/**
|
||||
* 业务编码
|
||||
*/
|
||||
private Boolean success;
|
||||
|
||||
/**
|
||||
* 错误编码
|
||||
*/
|
||||
private Integer errorCode;
|
||||
|
||||
/**
|
||||
* 错误消息
|
||||
*/
|
||||
private String errorMessage;
|
||||
|
||||
/**
|
||||
* 页数
|
||||
*/
|
||||
private Long page;
|
||||
|
||||
/**
|
||||
* 总数量
|
||||
*/
|
||||
private Long total;
|
||||
|
||||
/**
|
||||
* 展示类型
|
||||
*/
|
||||
private Integer showType;
|
||||
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
private T data;
|
||||
|
||||
/**
|
||||
* 成功
|
||||
*
|
||||
* @param data 数据
|
||||
* @param <T> 泛型对象
|
||||
* @return ResponseDTO
|
||||
*/
|
||||
public static <T> ResponseVO<T> ok(T data) {
|
||||
ResponseVO<T> wrapper = new ResponseVO<>();
|
||||
wrapper.setSuccess(true);
|
||||
wrapper.setData(data);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功
|
||||
*
|
||||
* @param data 数据
|
||||
* @param <T> 泛型对象
|
||||
* @param page 页数
|
||||
* @param total 总数量
|
||||
* @return ResponseDTO
|
||||
*/
|
||||
public static <T> ResponseVO<T> ok(T data, Long page, Long total) {
|
||||
ResponseVO<T> wrapper = new ResponseVO<>();
|
||||
wrapper.setSuccess(true);
|
||||
wrapper.setData(data);
|
||||
wrapper.setPage(page);
|
||||
wrapper.setTotal(total);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* 失败
|
||||
*
|
||||
* @param <T> 数据
|
||||
* @return ResponseDTO
|
||||
*/
|
||||
public static <T> ResponseVO<T> error(Integer errorCode, String errorMessage) {
|
||||
ResponseVO<T> wrapper = new ResponseVO<>();
|
||||
wrapper.setSuccess(false);
|
||||
wrapper.setErrorCode(errorCode);
|
||||
wrapper.setShowType(2);
|
||||
wrapper.setErrorMessage(errorMessage);
|
||||
return wrapper;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* SessionVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月21日 18时13分
|
||||
**/
|
||||
@Data
|
||||
public class SessionVO {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 会话内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 消息时间戳
|
||||
*/
|
||||
private Integer time;
|
||||
|
||||
/**
|
||||
* 短时间
|
||||
*/
|
||||
private String shortTime;
|
||||
|
||||
/**
|
||||
* 头像Url
|
||||
*/
|
||||
private String headImgUrl;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* StatsPanelVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月23日 17时25分
|
||||
**/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class StatsPanelVO {
|
||||
|
||||
/**
|
||||
* 联系人数量
|
||||
*/
|
||||
private Integer contact;
|
||||
|
||||
/**
|
||||
* 群聊数量
|
||||
*/
|
||||
private Integer chatRoom;
|
||||
|
||||
/**
|
||||
* 今日发送消息数量
|
||||
*/
|
||||
private Integer sent;
|
||||
|
||||
/**
|
||||
* 今日接受消息数量
|
||||
*/
|
||||
private Integer received;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* TopContactsVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月06日 15时38分
|
||||
**/
|
||||
@Data
|
||||
public class TopContactsVO {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* total
|
||||
*/
|
||||
private Long total;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* UserInfoVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年6月28日16:13:53
|
||||
*/
|
||||
@Data
|
||||
public class UserInfoVO {
|
||||
|
||||
/**
|
||||
* 文件目录
|
||||
*/
|
||||
private String basePath;
|
||||
|
||||
/**
|
||||
* 微信Id
|
||||
*/
|
||||
private String wxId;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String mobile;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* UserVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月10日20:21:02
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class UserVO {
|
||||
|
||||
/**
|
||||
* wxId
|
||||
*/
|
||||
private String wxId;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 当前选中状态
|
||||
*/
|
||||
private boolean current;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* WeAppInfoVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2024年01月17日 14时19分
|
||||
**/
|
||||
@Data
|
||||
public class WeAppInfoVO {
|
||||
|
||||
/**
|
||||
* title
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* sourceDisplayName
|
||||
*/
|
||||
private String sourceDisplayName;
|
||||
|
||||
/**
|
||||
* weAppIconUrl
|
||||
*/
|
||||
private String weAppIconUrl;
|
||||
|
||||
/**
|
||||
* weAppPageThumbRawUrl
|
||||
*/
|
||||
private String weAppPageThumbRawUrl;
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package com.xcs.wx.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* WeChatConfigVO
|
||||
*
|
||||
* @author xcs
|
||||
* @date 2023年12月25日 09时38分
|
||||
**/
|
||||
@Data
|
||||
@RequiredArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WeChatConfigVO {
|
||||
|
||||
/**
|
||||
* 进程Id
|
||||
*/
|
||||
private Integer pid;
|
||||
|
||||
/**
|
||||
* 基址
|
||||
*/
|
||||
private Long baseAddress;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 文件目录
|
||||
*/
|
||||
private String basePath;
|
||||
|
||||
/**
|
||||
* 微信Id
|
||||
*/
|
||||
private String wxId;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue