package com.dji.sample.manage.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO {

    @JsonProperty("user_id")
    private String userId;

    private String username;

    @JsonProperty("workspace_id")
    private String workspaceId;

    @JsonProperty("org_id")
    private String orgId;

    @JsonProperty("user_type")
    private Integer userType;

    @JsonProperty("mqtt_username")
    private String mqttUsername;

    @JsonProperty("mqtt_password")
    private String mqttPassword;

    @JsonProperty("access_token")
    private String accessToken;

    @JsonProperty("mqtt_addr")
    private String mqttAddr;

    @JsonProperty("role_type")
    private Integer roleType;

    @JsonProperty("org_logo")
    protected String orgLogo;

    /**
     * 是否新增用户
     */
    @JsonProperty("new_add")
    private Boolean newAdd;

    /**
     * 是否需要修改密码
     */
    @JsonProperty("need_change_password")
    private Long needChangePassword;

    /**
     * Whether the password has expired (including first-time login).
     * Front-end should redirect to the change-password page when true.
     */
    @JsonProperty("password_expired")
    private Boolean passwordExpired;

}
