package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysEmployee;

/**
 * 员工业务对象 sys_employee
 *
 * @author Lion Li
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysEmployee.class, reverseConvertGenerate = false)
public class SysEmployeeBo extends BaseEntity {

    /**
     * 员工ID
     */
    private Long id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    @Size(min = 0, max = 30, message = "姓名长度不能超过{max}个字符")
    private String name;

    /**
     * 电话
     */
    @Size(min = 0, max = 11, message = "电话长度不能超过{max}个字符")
    private String phone;

    /**
     * 密码
     */
    @Size(min = 0, max = 100, message = "密码长度不能超过{max}个字符")
    private String password;

    /**
     * 微信OpenID
     */
    @Size(min = 0, max = 255, message = "微信OpenID长度不能超过{max}个字符")
    private String wechatOpenid;

    /**
     * 微信UnionID
     */
    @Size(min = 0, max = 255, message = "微信UnionID长度不能超过{max}个字符")
    private String wechatUnionid;

    /**
     * 授权客户ERP RowID（多个逗号分隔）
     */
    private String authClientFRowIDs;

    /**
     * 头像OSS ID
     */
    private Long avatar;

    /**
     * 账号状态（0-禁用 1-启用）
     */
    private String status;

}
