|
@@ -1,5 +1,12 @@
|
|
|
package com.citu.module.menduner.im.controller.app.base.statistics;
|
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
+
|
|
|
+import java.time.LocalDateTime;
|
|
|
+
|
|
|
+import static com.citu.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
+
|
|
|
public class ImRecentConversationsStatisticsReqVo {
|
|
|
|
|
|
/**
|
|
@@ -15,17 +22,17 @@ public class ImRecentConversationsStatisticsReqVo {
|
|
|
|
|
|
private Long userId;
|
|
|
|
|
|
+ public static final String TYPE_RECENT_7_DAYS = "0";
|
|
|
+ public static final String TYPE_LAST_MONTH = "1";
|
|
|
+ public static final String TYPE_LAST_QUARTER = "2";
|
|
|
+ public static final String TYPE_CUSTOM = "99";
|
|
|
|
|
|
- /**
|
|
|
- * 开始时间(秒)
|
|
|
- */
|
|
|
- private Long startTime;
|
|
|
+ @Schema(description = "统计类型 0最近7天|1上个月|2上季度|99自定义",required = true)
|
|
|
+ private String type="0";
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * 结束时间(秒)
|
|
|
- */
|
|
|
- private Long endTime;
|
|
|
+ @Schema(description = "自定义时间范围")
|
|
|
+ @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
+ private LocalDateTime[] time;
|
|
|
|
|
|
/**
|
|
|
* 沟通类型
|
|
@@ -34,6 +41,27 @@ public class ImRecentConversationsStatisticsReqVo {
|
|
|
*/
|
|
|
private Integer communicateType=0;
|
|
|
|
|
|
+ private Long startTime;
|
|
|
+
|
|
|
+ private Long endTime;
|
|
|
+
|
|
|
+
|
|
|
+ public Long getStartTime() {
|
|
|
+ return startTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStartTime(Long startTime) {
|
|
|
+ this.startTime = startTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getEndTime() {
|
|
|
+ return endTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEndTime(Long endTime) {
|
|
|
+ this.endTime = endTime;
|
|
|
+ }
|
|
|
+
|
|
|
public Long getEnterpriseId() {
|
|
|
return enterpriseId;
|
|
|
}
|
|
@@ -50,27 +78,29 @@ public class ImRecentConversationsStatisticsReqVo {
|
|
|
this.userId = userId;
|
|
|
}
|
|
|
|
|
|
- public Long getStartTime() {
|
|
|
- return startTime;
|
|
|
+
|
|
|
+
|
|
|
+ public Integer getCommunicateType() {
|
|
|
+ return communicateType;
|
|
|
}
|
|
|
|
|
|
- public void setStartTime(Long startTime) {
|
|
|
- this.startTime = startTime;
|
|
|
+ public void setCommunicateType(Integer communicateType) {
|
|
|
+ this.communicateType = communicateType;
|
|
|
}
|
|
|
|
|
|
- public Long getEndTime() {
|
|
|
- return endTime;
|
|
|
+ public String getType() {
|
|
|
+ return type;
|
|
|
}
|
|
|
|
|
|
- public void setEndTime(Long endTime) {
|
|
|
- this.endTime = endTime;
|
|
|
+ public void setType(String type) {
|
|
|
+ this.type = type;
|
|
|
}
|
|
|
|
|
|
- public Integer getCommunicateType() {
|
|
|
- return communicateType;
|
|
|
+ public LocalDateTime[] getTime() {
|
|
|
+ return time;
|
|
|
}
|
|
|
|
|
|
- public void setCommunicateType(Integer communicateType) {
|
|
|
- this.communicateType = communicateType;
|
|
|
+ public void setTime(LocalDateTime[] time) {
|
|
|
+ this.time = time;
|
|
|
}
|
|
|
}
|