package com.caliverse.admin.domain.request;

import com.caliverse.admin.domain.entity.Message;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MenuRequest {

    private Long id;
    private String title;
    @JsonProperty("image_list")
    private List<Message> imageList;
    @JsonProperty("start_dt")
    private LocalDateTime startDt;
    @JsonProperty("end_dt")
    private LocalDateTime endDt;
    @JsonProperty("is_link")
    private boolean isLink;
    @JsonProperty("link_list")
    private List<Message> linkList;
    @JsonProperty("order_id")
    private Integer orderId;

    @JsonProperty("create_by")
    private Long createBy;
    @JsonProperty("create_dt")
    private LocalDateTime createDt;
    @JsonProperty("update_by")
    private Long updateBy;
    @JsonProperty("update_dt")
    private LocalDateTime updateDt;


    @Getter
    public static class DeleteMailItem {
        private String type;
        private String guid;
        @JsonProperty("mail_guid")
        private String MailGuid;
        @JsonProperty("item_id")
        private Long itemId;
        @JsonProperty("parrent_count")
        private Double parrentCount;
        private Double count;
    }
}
