package com.kospo.talk.payload;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString
@Schema(name = "ReqDto", description = "ITSM 요청")
public class ReqDto implements Serializable {
    @Schema(name = "talk_id", description = "톡아이디")
    String talk_id;
    @Schema(name = "req_dt", description = "요청일자")
    String req_dt;
    @Schema(name = "hop_ed_ymd", description = "희망일자")
    String hop_ed_ymd;
    @Schema(name = "req_sabun", description = "요청자")
    String req_sabun;
    @Schema(name = "req_area_cd", description = "업무 코드")
    String req_area_cd;
    @Schema(name = "req_title", description = "요청 제목")
    String req_title;
    @Schema(name = "req_content", description = "요청 내용")
    String req_content;
    @Schema(name = "proc_content", description = "처리 내용")
    String proc_content;
    @Schema(name = "reg_privacy_ck", description = "개인정보 포함여부")
    String reg_privacy_ck;
    @Schema(name = "reg_privacy_action", description = "개인정보 내용")
    String reg_privacy_action;
    @Schema(name = "proc_sabun", description = "등록자(유지보수)")
    String proc_sabun;
    @Schema(name = "state_flag", description = "상태 구분 A : 처리 P : pi 승인")
    String state_flag;
    @Schema(name = "attaches", description = "첨부파일")
    List<Attach> attaches;

    @Getter
    @Setter
    public static class Attach{
        String file_name;
        byte[] data;
    }
}