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 java.util.List;

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

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

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

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

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

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

    private List<RoomBo> room;

    private List<SysImgBo> sysimg;
}
