package com.red.circle.other.inner.model.dto.user.approve;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

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

/**
 * 用户资料审核信息.
 *
 * @author lixiaofei on 2024/8/20
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserProfileApproveDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 账号.
   */
  private String account;

  private UserAvatarInfo userAvatarInfo;
  private UserNicknameInfo userNicknameInfo;
  private RoomAvatarInfo roomAvatarInfo;
  private RoomNicknameInfo roomNicknameInfo;

  @Data
  public static class UserAvatarInfo {
    /**
     * 头像.
     */
    private String avatar;
    /**
     * 状态.NONE未操作，PENDING待审核，PASS审核通过，NOT_PASS审核不通过
     */
    private String status;
  }

  @Data
  public static class UserNicknameInfo {
    /**
     * 昵称.
     */
    private String nickname;
    /**
     * 状态.NONE未操作，PENDING待审核，PASS审核通过，NOT_PASS审核不通过
     */
    private String status;
  }

  @Data
  public static class RoomAvatarInfo {
    /**
     * 房间封面.
     */
    private String avatar;
    /**
     * 状态.NONE未操作，PENDING待审核，PASS审核通过，NOT_PASS审核不通过
     */
    private String status;
  }

  @Data
  public static class RoomNicknameInfo {
    /**
     * 房间昵称.
     */
    private String nickname;
    /**
     * 状态.NONE未操作，PENDING待审核，PASS审核通过，NOT_PASS审核不通过
     */
    private String status;
  }
}
