package com.caliverse.admin.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MenuBanner {
    private Long id;
    @JsonProperty("row_num")
    private Long rowNum;
    private String title;
    private BANNER_STATUS status;
    @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("order_id")
    private Integer orderId;

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

    public static class Guid{
        String guid;
    }

    public enum BANNER_STATUS {
        WAIT,
        FINISH,
        FAIL,
        RUNNING,
        ;
    }
}
