package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.ShopImg;
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.*;

/**
 * 店铺图片业务对象 t_shop_img
 *
 * @author yxy
 * @date 2025-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ShopImg.class, reverseConvertGenerate = false)
public class ShopImgBo extends BaseEntity {

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

    /**
     * 父id
     */
    private Long pid;

    /**
     * 相对路径
     */
    private String relativePath;

    /**
     * 绝对路径
     */
    private String absolutePath;

    /**
     * 类型  1封面水印  2商详水印 3 商详头图  4 商详尾图 5 轮播尾图
     */
    private String type;

    /**
     * 图片顺序
     */
    private Long imgOrder;

    /**
     * 店铺状态（0正常 1停用）
     */
    private String status;


}
