package com.propertyManagement.business.domain.bo;

import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.propertyManagement.common.core.domain.BaseEntity;

/**
 * 规则说明业务对象 wx_rule
 *
 * @author liushuai
 * @date 2025-05-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxRuleBo extends BaseEntity {

    /**
     * 主键
     */
    private Long ruleId;

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

    /**
     * 小区名称
     */
    private String communityName;

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

    /**
     * 规则类型
     */
    @NotNull(message = "规则类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer ruleType;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnable;


}
