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_common_phone
 *
 * @author liushuai
 * @date 2025-05-14
 */

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

    /**
     * 主键
     */
    private Long id;

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

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

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

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

    /**
     * 顺序
     */
    @NotNull(message = "顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

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


}
