package com.kospo.talk.payload;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "QuestionDto", description = "질문")
public class QuestionDto {
    @NotNull
    @Schema(name = "workId", description = "업무아이디")
    private String workId;

    @NotNull
    @Schema(name = "sort", description = "순서")
    private Integer sort;

    @Schema(name = "content", description = "내용")
    private String content;

    @Schema(name = "ask", description = "응답")
    private String ask;

    @Schema(name = "insDate", description = "등록일시")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSSSSS", timezone = "Asia/Seoul")
    private LocalDateTime insDate;

    @Schema(name = "insSabun", description = "등록자")
    private String insSabun;

    @Schema(name = "insName", description = "등록자명")
    private String insName;
}
