package com.zhongshu.card.client.openApi.model.face;

import com.zhongshu.card.client.openApi.base.SuperAPIModel;
import com.zhongshu.card.client.type.Sex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author TRX
 * @date 2024/10/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrgUserFaceOpenModel extends SuperAPIModel {

    //-----------------用户信息 start -----------------
    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "用户名称")
    private String userName;

    @Schema(description = "用户电话")
    private String phone;

    @Schema(description = "性别")
    private Sex sex;

    private String sexStr;

    public String getSexStr() {
        if (sex != null) {
            return sex.getRemark();
        }
        return "";
    }

    @Schema(description = "人员编码")
    private String code;

    @Schema(description = "人脸图片地址")
    private String img;

    @Schema(description = "是否可使用")
    private Boolean isCanUsed;

    @Schema(description = "人脸id")
    private String updateFaceFileId;
}
