package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
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.system.domain.vo.RegionVo;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = RoomBoStr.class, reverseConvertGenerate = false)
public class RoomBoStr {

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

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

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

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

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

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

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

    /**
     * 楼层
     */
    @NotNull(message = "楼层不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer floorNum;

    private List<RegionBo> region;

    private List<SysImgBo> sysimg;

    private String isMaster;

}
