package org.dromara.system.domain.vo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysUserElectronicSignature;

import java.io.Serial;
import java.io.Serializable;

/**
 * 当前登录人员电子签名信息
 *
 * @author shihongwei
 */
@Data
@AutoMapper(target = SysUserElectronicSignature.class)
public class SysUserElectronicSignatureVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 是否已配置电子签名
     */
    private Boolean configured;

    /**
     * 人员唯一标识
     */
    private String personKey;

    /**
     * 系统用户ID
     */
    private Long userId;

    /**
     * 业务人员ID
     */
    private String businessUserId;

    /**
     * 企业ID
     */
    private Long companyId;

    /**
     * 登录端口
     */
    private String loginPort;

    /**
     * 电子签名图片OSS ID
     */
    private Long signOssId;

    /**
     * 电子签名图片URL
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "signOssId")
    private String signUrl;

    /**
     * 签署人名称
     */
    private String signName;

    /**
     * 状态：1=已设置 0=未设置
     */
    private String status;
}
