package com.starry.admin.modules.shop.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.starry.common.domain.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 店铺首页轮播对象 play_carousel_info
 *
 * @author admin
 * @since 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("play_shop_carousel_info")
public class PlayShopCarouselInfoEntity extends BaseEntity<PlayShopCarouselInfoEntity> {

    /**
     * UUID
     */
    private String id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 轮播图位置(0:首页)
     */
    private String carouselIndex;

    /**
     * 启用状态（0:未启用,1:已启用）
     */
    private String enableState;

    /**
     * 图片URL
     */
    private String carouselUrl;

    /**
     * 导航类型(0:无)
     */
    private String navigationType;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addTime;

}
