完善web一些功能

This commit is contained in:
2024-11-27 17:39:02 +08:00
parent 48a15c8769
commit e8cceef419
12 changed files with 647 additions and 143 deletions

View File

@@ -66,5 +66,9 @@ public interface LiveApi {
@POST("/room/v1/Room/get_status_info_by_uids")
Call<HttpBody<Map<String,LiveAnchorInfo>>> getLiveRoomStatus(@Body
JSONObject uids);
@GET("/xlive/web-ucenter/v1/xfetter/GetWebList")
Call<HttpBody<FollowLive>> getUserFollowLive(
@Query("hit_ab")boolean hit_ab,
@Query("_")long time
);
}

View File

@@ -0,0 +1,107 @@
package com.yutou.biliapi.bean.live;
import com.alibaba.fastjson2.annotation.JSONField;
import com.yutou.common.okhttp.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
public class FollowLive extends BaseBean {
@JSONField(name = "rooms")
List<Room> rooms;
@JSONField(name = "list")
List<Room> list;
@lombok.Data
public static class Room {
@JSONField(name = "title")
private String title;
@JSONField(name = "room_id")
private String roomId;
@JSONField(name = "uid")
private int uid;
@JSONField(name = "online")
private int online;
@JSONField(name = "live_time")
private String liveTime;
@JSONField(name = "live_status")
private int liveStatus;
@JSONField(name = "short_id")
private int shortId;
@JSONField(name = "area")
private int area;
@JSONField(name = "area_name")
private String areaName;
@JSONField(name = "area_v2_id")
private int areaV2Id;
@JSONField(name = "area_v2_name")
private String areaV2Name;
@JSONField(name = "area_v2_parent_name")
private String areaV2ParentName;
@JSONField(name = "area_v2_parent_id")
private int areaV2ParentId;
@JSONField(name = "uname")
private String uname;
@JSONField(name = "face")
private String face;
@JSONField(name = "tag_name")
private String tagName;
@JSONField(name = "tags")
private String tags;
@JSONField(name = "cover_from_user")
private String coverFromUser;
@JSONField(name = "keyframe")
private String keyframe;
@JSONField(name = "lock_till")
private String lockTill;
@JSONField(name = "hidden_till")
private String hiddenTill;
@JSONField(name = "broadcast_type")
private int broadcastType;
@JSONField(name = "is_encrypt")
private boolean isEncrypt;
@JSONField(name = "link")
private String link;
@JSONField(name = "nickname")
private String nickname;
@JSONField(name = "roomname")
private String roomName;
@JSONField(name = "roomid")
private String roomId2;
@JSONField(name = "liveTime")
private long liveTimeLong;
}
}