package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysPicture;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 画册视图对象 sys_picture
 *
 * @author Maosw
 * @date 2025-02-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysPicture.class)
public class SysPictureVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 分类  1-轮播  2-画册
     */
    @ExcelProperty(value = "分类  1-轮播  2-画册")
    private Long type;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 封面图片
     */
    @ExcelProperty(value = "封面图片")
    private String icon;

    /**
     * 图片集JSON
     */
    @ExcelProperty(value = "图片集JSON")
    private String imgs;

    /**
     * 跳转地址
     */
    @ExcelProperty(value = "跳转地址")
    private String url;

    /**
     * 状态（1正常 0关闭）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=正常,0=关闭")
    private Long status;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private Long createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 标记
     */
    private Integer flag;

    /**
     * 浏览量
     */
    private Long num;

    /**
     * 租户  1-室内设计  2-制图工厂
     */
    private Integer tenant;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 工种ID
     */
    private Long work;

    /**
     * 工种名称
     */
    private String workName;

}
