197 lines
6.2 KiB
Java
197 lines
6.2 KiB
Java
package com.xscm.moduleutil.bean;
|
||
|
||
import com.chad.library.adapter.base.entity.MultiItemEntity;
|
||
import com.google.gson.annotations.SerializedName;
|
||
import com.xscm.moduleutil.BaseEvent;
|
||
import com.xscm.moduleutil.bean.room.FriendInfo;
|
||
|
||
import java.io.Serializable;
|
||
import java.util.List;
|
||
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
|
||
/**
|
||
* @author qx
|
||
* @data 2025/6/3
|
||
* @description: 个人信息,点击我的获取
|
||
*/
|
||
@EqualsAndHashCode(callSuper = true)
|
||
@Data
|
||
public class UserInfo extends BaseEvent implements Serializable {
|
||
private static final long serialVersionUID = 1L;
|
||
public static final String FEMALE = "2";
|
||
public static final String MALE = "1";
|
||
private int id;
|
||
private int user_id = 0; //用户id
|
||
private String user_code;//用户id码
|
||
private String avatar;//头像
|
||
private String nickname;//昵称
|
||
private int sex;//性别 1男 2女
|
||
private List<String> icon;//等级图标数组
|
||
private int follow_num;//关注数
|
||
private int fans_num;//粉丝数
|
||
private int look_me_num; //被查看次数,需要魅力等级20以上才能查看
|
||
private int charm_level; //魅力等级
|
||
private int is_use_code; //是否是靓号 0否 1是
|
||
private String tencent_im;
|
||
private String token;
|
||
private String jia_jia;//坐骑
|
||
private int is_in_pit;//是否在麦上,1在0不在
|
||
private int is_open_live_remind;//是否设置开播提醒
|
||
private String birthday;//生日
|
||
private String profile = "";//简介
|
||
private String home_bgimages;//背景图片
|
||
private int is_follow;//是否关注
|
||
private List<UserTagBean> tag_list;
|
||
private List<GiftWall> gift_wall;
|
||
private int age;//年龄
|
||
private String is_room;
|
||
private String dress;//头像框
|
||
private String chat_bubble;//聊天气泡
|
||
private String charm;//魅力值
|
||
private String room_id;
|
||
private String guild_name = "";//公会名称
|
||
private int guild_id = 0;//公会id
|
||
private String me_guild_name = "";//公会名称
|
||
private int me_guild_id = 0;//公会id
|
||
private String is_mute;//禁言状态 0否 1是
|
||
private String is_mute_pit;//禁麦状态 0否 1是
|
||
private String is_manager;//是否是管理员 0否 1是
|
||
private String is_host;//是否是主持 0否 1是
|
||
private String is_room_owner;//是否是房主 0否 1是
|
||
private String pit_number;//在点击麦上用户的时候使用
|
||
private String auction_id;//在拍卖中的拍卖序号
|
||
private int auth;//是否实名 1:实名 0:未实名
|
||
private String red_status;
|
||
private String gift_num;
|
||
|
||
private int is_can_chat;//是否可以私聊,1:可以,0:不可以
|
||
private int can_chat_money;//需要充值的金额
|
||
|
||
private RelationshipBean qinmi;
|
||
private RelationshipBean zhenai;
|
||
private String mobile;//手机号
|
||
|
||
private int heartId; // "heartId": 4,
|
||
private int heartNum; //
|
||
private String red_num;
|
||
private String ta;
|
||
|
||
private String nobility_image;//贵族图标
|
||
private String nickname_color = "";//昵称颜色
|
||
private String mic_cycle;//麦圈
|
||
private String is_hide;//0不能设置,1:可以设置
|
||
private String hide_status;//0-取消隐身,1-设置隐身
|
||
|
||
private String enter_image;//爵位飘屏的背景
|
||
private String enter_text;//爵位飘屏的文字
|
||
private int singer_status;//歌手认证状态0-待审核,1-通过,2-拒绝 -1:未认证
|
||
private int singer_level;//歌手等级
|
||
private CpInfo cp_info;
|
||
private int market_value;//身价
|
||
private String market_value_coin="";//身价配置 多少金币数
|
||
private String market_value_market="";//身价配置 多少身价数
|
||
|
||
private String sign_value;
|
||
private String sign_id;
|
||
|
||
private Master master;
|
||
private int is_online;//是否在线 : 1在线 2离线
|
||
private int had_custom_gift;//是否显示设置了自定义礼物 0:没有 1:有
|
||
|
||
|
||
@Data
|
||
public static class Master implements Serializable {
|
||
private String user_id;
|
||
private String nickname;
|
||
private String avatar;
|
||
}
|
||
|
||
/*"cp_info": {
|
||
"name": "string",
|
||
"user_id1": "string",
|
||
"user_id2": "string",
|
||
"level": "string",
|
||
"exp": "string",
|
||
"pendant": "string",
|
||
"direction": "string",
|
||
|
||
}*/
|
||
|
||
@Data
|
||
public static class CpInfo implements Serializable, MultiItemEntity {
|
||
private int id;
|
||
private int user_id1;
|
||
private int user_id2;
|
||
private int status;
|
||
|
||
private long createtime;
|
||
|
||
public String name = "-1";
|
||
public String level = "-1";
|
||
public String exp = "-1";
|
||
public String pendant = "-1";
|
||
public String direction = "-1";
|
||
public UserInfo1 user_info1;
|
||
public UserInfo2 user_info2;
|
||
|
||
@Override
|
||
public int getItemType() {
|
||
if (name != null && !name.isEmpty()) {
|
||
return 1;
|
||
}
|
||
return 2;
|
||
}
|
||
|
||
@Data
|
||
public static class UserInfo1 implements Serializable {
|
||
public String user_id;
|
||
public String nickname;
|
||
public String avatar;
|
||
public String dress;
|
||
}
|
||
|
||
@Data
|
||
public static class UserInfo2 implements Serializable {
|
||
public String user_id;
|
||
public String nickname;
|
||
public String avatar;
|
||
public String dress;
|
||
}
|
||
/*"user_info1": {
|
||
"user_id": "string",
|
||
"nickname": "string",
|
||
"avatar": "string",
|
||
"dress": "string"
|
||
},
|
||
"user_info2": {
|
||
"user_id": "string",
|
||
"nickname": "string",
|
||
"avatar": "string",
|
||
"dress": "string"
|
||
}*/
|
||
|
||
}
|
||
|
||
// @Data
|
||
// public static class TagList{
|
||
// private String id;
|
||
// private String tag_name;
|
||
// }
|
||
@Data
|
||
public static class GiftWall implements Serializable {
|
||
private String gift_name;
|
||
private String total;
|
||
|
||
private List<SendUserInfo> send_user_info;
|
||
|
||
@Data
|
||
public static class SendUserInfo implements Serializable {
|
||
private String nickname;
|
||
private String avatar;
|
||
}
|
||
|
||
}
|
||
}
|