package org.dromara.system.domain.bo;

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

import java.util.List;

/**
 * 【请填写功能名称】业务对象 sys_img
 *
 * @author Lion Li
 * @date 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysImg.class, reverseConvertGenerate = false)
public class SysImgBo extends BaseEntity {

    /**
     * 图片id
     */
    @NotBlank(message = "图片id不能为空", groups = { EditGroup.class })
    private String ossId;

    /**
     * 图片类型
     */
    @NotBlank(message = "图片类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgType;

    /**
     * url
     */
    //@NotBlank(message = "url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 名称
     */
    //@NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 主图标识
     */
    //@NotBlank(message = "主图标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enumC;

    private ResponseBo response;

    private boolean defaults;

    private List<SysImgVo> sysimg;

    private String positionId;

}
