package com.infoepoch.pms.agent.domain.baisc.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author jiangyz
 * @date 2026/4/10 10:05
 * 合作单位用户
 */
@Getter
@Setter
public class SupplierEmployee {

    /**
     * 主键Id
     */
    private String id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 单位名称
     */
    private String supplier;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 登录用户名
     */
    private String userName;
    /**
     * 登录密码
     */
    private String passWord;
    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordTime;
    /**
     * 是否禁用
     */
    private Boolean disabled;

    /**
     * 私有无参构造
     */
    private SupplierEmployee() {
    }

    /**
     * 仓储还原
     */
    public SupplierEmployee(String id, String name, String supplier, String phone, String userName, String passWord, Date recordTime, Boolean disabled) {
        this.id = id;
        this.name = name;
        this.supplier = supplier;
        this.phone = phone;
        this.userName = userName;
        this.passWord = passWord;
        this.recordTime = recordTime;
        this.disabled = disabled;
    }
}