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

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

    /**
     * 主键
     */
    private Long accountId;

    /**
     * 小区主键
     */
    @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 account;

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

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

    /**
     * 性别（0男 1女 2未知）
     */
    @NotNull(message = "性别（0男 1女 2未知）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sex;

    /**
     * 账号类型（1保洁 2保安 3维修人员）
     */
    @NotNull(message = "账号类型（1保洁 2保安 3维修人员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 备注
     */
    private String remark;


}
