package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysPicture;

import java.util.List;

/**
 * 画册业务对象 sys_picture
 *
 * @author Maosw
 * @date 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysPicture.class, reverseConvertGenerate = false)
public class SysPictureBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类  1-轮播  2-画册
     */
    @NotNull(message = "分类  1-轮播  2-画册不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图片
     */
    private String icon;

    /**
     * 图片集JSON
     */
    private String imgs;

    /**
     * 跳转地址
     */
    private String url;

    /**
     * 状态（1正常 0关闭）
     */
    private Long status;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 备注
     */
    private String remark;

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

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

    /**
     * 租户  1-设计甄选  2-制图工厂  3-室内联盟
     */
    private Integer tenant;

    /**
     * 标记集合
     */
    private String flags;

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

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

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

    /**
     * 图片集
     */

}
