package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.*;

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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 推广码底图
 *
 * @author xm
 * @since 2026-04-27 18:02:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopActiveImage对象", description = "推广码底图")
@TableName("shop_active_image")
public class ShopActiveImage implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "类型 0-推广底图 1-其他")
    private Integer type;

    @Schema(description = "图片地址，多个以‘,’隔开")
    private String imgUrl;

    @Schema(description = "图片地址集合")
    @TableField(exist = false)
    private List<String> imgUrlList;

    @Schema(description = "启用状态 0-启用 1-禁用")
    private Integer status;

    @Schema(description = "排序")
    private Integer sortNumber;

    @Schema(description = "租户ID")
    @NotNull(message = "租户ID不能为空！")
    private Integer tenantId;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updater;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除 0-未删 1-已删")
    @TableLogic
    private Integer deleted;

}
