260727_01_ENH: call history에 상태 추가 및 call start, call close로 분리

This commit is contained in:
2026-07-27 16:37:48 +09:00
parent ff465ec7d6
commit a44ade105d
10 changed files with 216 additions and 51 deletions

View File

@@ -0,0 +1,22 @@
package com.kri.contact.server.dto.list;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@Schema(description = "ListCallCloseRequestDto")
public class ListCallCloseRequestDto extends ListCallStartRequestDto {
@NotNull
@Schema(description = "totalTime")
private Integer totalTime;
@NotNull
@Schema(description = "talkTime")
private Integer talkTime;
}

View File

@@ -1,8 +1,8 @@
package com.kri.contact.server.dto.list;
import io.swagger.v3.oas.annotations.media.Schema;
import com.kri.contact.server.common.enums.CallStatus;
import com.kri.contact.server.persistence.entity.TListCallHistEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Getter;
@@ -32,6 +32,8 @@ public class ListCallHistDto {
private String destSessionId;
@Schema(description = "callTy")
private String callTy;
@Schema(description = "callStatus")
private CallStatus callStatus;
@Schema(description = "startDt")
private LocalDateTime startDt;
@Schema(description = "endDt")
@@ -63,6 +65,7 @@ public class ListCallHistDto {
.agentSessionId(entity.getAgentSessionId())
.destSessionId(entity.getDestSessionId())
.callTy(entity.getCallTy())
.callStatus(entity.getCallStatus())
.startDt(entity.getStartDt())
.endDt(entity.getEndDt())
.totalTime(entity.getTotalTime())

View File

@@ -1,11 +1,9 @@
package com.kri.contact.server.dto.list;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.time.Instant;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.NoArgsConstructor;
@@ -14,8 +12,8 @@ import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@Schema(description = "ListCallHistRequestDto")
public class ListCallHistRequestDto {
@Schema(description = "ListCallStartRequestDto")
public class ListCallStartRequestDto {
@NotNull
@Schema(description = "listHderId")
@@ -55,14 +53,6 @@ public class ListCallHistRequestDto {
@Schema(description = "startDt")
private LocalDateTime startDt;
@NotNull
@Schema(description = "totalTime")
private Integer totalTime;
@NotNull
@Schema(description = "talkTime")
private Integer talkTime;
@NotNull
@Schema(description = "mediaServerId")
private Integer mediaServerId;