|
@@ -31,12 +31,24 @@ interface RoomApi {
|
|
@POST("/v2/rtc/game/list")
|
|
@POST("/v2/rtc/game/list")
|
|
suspend fun getGameList(): GameListModel
|
|
suspend fun getGameList(): GameListModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 游戏列表(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @POST("/v1/rtc/house/game/list")
|
|
|
|
+ suspend fun getHouseGameList(): GameListModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 推荐游戏列表
|
|
* 推荐游戏列表
|
|
* */
|
|
* */
|
|
@POST("/v3/home/recommend/game/list")
|
|
@POST("/v3/home/recommend/game/list")
|
|
suspend fun getRecommendGameList(): RecommendGameListModel
|
|
suspend fun getRecommendGameList(): RecommendGameListModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 推荐游戏列表(小黑屋)
|
|
|
|
+ * */
|
|
|
|
+ @POST("/v1/rtc/house/recommend/game/list")
|
|
|
|
+ suspend fun getHouseRecommendGameList(): RecommendGameListModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 开播
|
|
* 开播
|
|
* broadcast_type 直播间类型(1视频2语音)
|
|
* broadcast_type 直播间类型(1视频2语音)
|
|
@@ -49,7 +61,7 @@ interface RoomApi {
|
|
/**
|
|
/**
|
|
* 关播
|
|
* 关播
|
|
*/
|
|
*/
|
|
- @POST("/v1/rtc/end/broadcast")
|
|
|
|
|
|
+ @POST("/v2/rtc/end/broadcast")
|
|
suspend fun closeLive(): AnchorClosedModel
|
|
suspend fun closeLive(): AnchorClosedModel
|
|
|
|
|
|
|
|
|
|
@@ -60,6 +72,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/join/broadcast")
|
|
@POST("/v1/rtc/join/broadcast")
|
|
suspend fun joinRoom(@Field("room_id") room_id: String,@Field("broadcast_password")broadcast_password:String?=""): RoomModel
|
|
suspend fun joinRoom(@Field("room_id") room_id: String,@Field("broadcast_password")broadcast_password:String?=""): RoomModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 加入房间(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/join")
|
|
|
|
+ suspend fun joinHouseRoom(@Field("room_id") room_id: String): RoomModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 退出房间
|
|
* 退出房间
|
|
*/
|
|
*/
|
|
@@ -67,6 +86,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/leave/broadcast")
|
|
@POST("/v1/rtc/leave/broadcast")
|
|
suspend fun leaveRoom(@Field("room_id") room_id: String): Any
|
|
suspend fun leaveRoom(@Field("room_id") room_id: String): Any
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 退出房间(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/leave/broadcast")
|
|
|
|
+ suspend fun houseLeaveRoom(@Field("room_id") room_id: String): Any
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 观众列表
|
|
* 观众列表
|
|
@@ -79,6 +105,17 @@ interface RoomApi {
|
|
@Field("page_size") page_size: Int = 5
|
|
@Field("page_size") page_size: Int = 5
|
|
): RoomUserModel
|
|
): RoomUserModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 观众列表(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/user/list")
|
|
|
|
+ suspend fun getHouseRoomUser(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("page") page: Int = 1,
|
|
|
|
+ @Field("page_size") page_size: Int = 5
|
|
|
|
+ ): RoomUserModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 直播间排行榜
|
|
* 直播间排行榜
|
|
* 排行榜类型(1日榜2周榜3月榜)rank_type
|
|
* 排行榜类型(1日榜2周榜3月榜)rank_type
|
|
@@ -92,6 +129,19 @@ interface RoomApi {
|
|
@Field("page_size") page_size: Int = 20
|
|
@Field("page_size") page_size: Int = 20
|
|
): RankListModel
|
|
): RankListModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 直播间排行榜(小黑屋)
|
|
|
|
+ * 排行榜类型(1日榜2周榜3月榜)rank_type
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/fans/rank/list")
|
|
|
|
+ suspend fun getHouseRankList(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("rank_type") rank_type: Int,
|
|
|
|
+ @Field("page") page: Int = 1,
|
|
|
|
+ @Field("page_size") page_size: Int = 20
|
|
|
|
+ ): RankListModel
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 直播间礼物
|
|
* 直播间礼物
|
|
@@ -99,6 +149,12 @@ interface RoomApi {
|
|
@POST("/v1/rtc/gift/list")
|
|
@POST("/v1/rtc/gift/list")
|
|
suspend fun getGiftList(): List<GiftAllModel>
|
|
suspend fun getGiftList(): List<GiftAllModel>
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 直播间礼物(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @POST("/v1/rtc/house/gift/list")
|
|
|
|
+ suspend fun getHouseGiftList(): List<GiftAllModel>
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 直播间礼物
|
|
* 直播间礼物
|
|
*/
|
|
*/
|
|
@@ -136,6 +192,21 @@ interface RoomApi {
|
|
@Field("pk_id") pk_id: String,
|
|
@Field("pk_id") pk_id: String,
|
|
): GiftSendModel
|
|
): GiftSendModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 赠送礼物(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/buy/gift")
|
|
|
|
+ suspend fun sendHouseGift(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("gift_id") gift_id: String,
|
|
|
|
+ @Field("gift_batch") gift_batch: Int,
|
|
|
|
+ @Field("gift_receive_id") gift_receive_id: String,
|
|
|
|
+ @Field("is_combo") is_combo: Int,
|
|
|
|
+ @Field("gift_num") gift_num: Int,
|
|
|
|
+ @Field("pk_id") pk_id: String,
|
|
|
|
+ ): GiftSendModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 语音房赠送心愿礼物
|
|
* 语音房赠送心愿礼物
|
|
*/
|
|
*/
|
|
@@ -153,6 +224,16 @@ interface RoomApi {
|
|
@Field("user_id") user_id: String
|
|
@Field("user_id") user_id: String
|
|
): RoomAuthModel
|
|
): RoomAuthModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 用户在直播间权限(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("v1/rtc/house/broadcast/auth")
|
|
|
|
+ suspend fun getHouseUserRoomAuth(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("user_id") user_id: String
|
|
|
|
+ ): RoomAuthModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 剔除直播间
|
|
* 剔除直播间
|
|
* type 1 添加 0移除
|
|
* type 1 添加 0移除
|
|
@@ -196,12 +277,24 @@ interface RoomApi {
|
|
@POST("/v1/rtc/broadcast/share/link")
|
|
@POST("/v1/rtc/broadcast/share/link")
|
|
suspend fun getShareConfig(): ShareConfig
|
|
suspend fun getShareConfig(): ShareConfig
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取分享配置(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/share/link")
|
|
|
|
+ suspend fun getHouseShareConfig(): ShareConfig
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取直播间配置
|
|
* 获取直播间配置
|
|
*/
|
|
*/
|
|
@POST("/v1/rtc/broadcast/setting")
|
|
@POST("/v1/rtc/broadcast/setting")
|
|
suspend fun getRoomConfig(): RoomConfig
|
|
suspend fun getRoomConfig(): RoomConfig
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取直播间配置(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/setting")
|
|
|
|
+ suspend fun getHouseRoomConfig(): RoomConfig
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取红包列表
|
|
* 获取红包列表
|
|
*/
|
|
*/
|
|
@@ -209,6 +302,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/broadcast/package/list")
|
|
@POST("/v1/rtc/broadcast/package/list")
|
|
suspend fun getRedEnvelopeList(@Field("room_id") room_id: String): ArrayList<RedEnvelope>
|
|
suspend fun getRedEnvelopeList(@Field("room_id") room_id: String): ArrayList<RedEnvelope>
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取红包列表(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/package/list")
|
|
|
|
+ suspend fun getHouseRedEnvelopeList(@Field("room_id") room_id: String): ArrayList<RedEnvelope>
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 发送红包接口
|
|
* 发送红包接口
|
|
@@ -221,6 +321,17 @@ interface RoomApi {
|
|
@Field("package_total_num") package_total_num: Int,
|
|
@Field("package_total_num") package_total_num: Int,
|
|
): Any
|
|
): Any
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 发送红包接口(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/send/package")
|
|
|
|
+ suspend fun sendHouseRedEnvelope(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("package_total_coins") package_total_coins: String,
|
|
|
|
+ @Field("package_total_num") package_total_num: Int,
|
|
|
|
+ ): Any
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 领取红包接口
|
|
* 领取红包接口
|
|
@@ -232,6 +343,16 @@ interface RoomApi {
|
|
@Field("package_id") package_id: String
|
|
@Field("package_id") package_id: String
|
|
): RedEnvelopeResult
|
|
): RedEnvelopeResult
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 领取红包接口(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/receive/package")
|
|
|
|
+ suspend fun getHouseRedEnvelopeCoin(
|
|
|
|
+ @Field("room_id") room_id: String,
|
|
|
|
+ @Field("package_id") package_id: String
|
|
|
|
+ ): RedEnvelopeResult
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据主播ID获取主播信息
|
|
* 根据主播ID获取主播信息
|
|
@@ -240,6 +361,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/broadcast/user/detail")
|
|
@POST("/v1/rtc/broadcast/user/detail")
|
|
suspend fun getMomentModel(@Field("room_id") room_id: String): MomentModel
|
|
suspend fun getMomentModel(@Field("room_id") room_id: String): MomentModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 根据主播ID获取主播信息(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/user/detail")
|
|
|
|
+ suspend fun getHouseMomentModel(@Field("room_id") room_id: String): MomentModel
|
|
|
|
+
|
|
|
|
|
|
/***********************PK*********************************/
|
|
/***********************PK*********************************/
|
|
|
|
|
|
@@ -496,6 +624,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/barrage/send")
|
|
@POST("/v1/rtc/barrage/send")
|
|
suspend fun sendDanMu(@Field("room_id") room_id: String,@Field("message") message: String):Any
|
|
suspend fun sendDanMu(@Field("room_id") room_id: String,@Field("message") message: String):Any
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 发送弹幕(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/barrage/send")
|
|
|
|
+ suspend fun sendHouseDanMu(@Field("room_id") room_id: String,@Field("message") message: String):Any
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 红包领取详情
|
|
* 红包领取详情
|
|
*/
|
|
*/
|
|
@@ -503,6 +638,13 @@ interface RoomApi {
|
|
@POST("/v1/rtc/broadcast/package/detail")
|
|
@POST("/v1/rtc/broadcast/package/detail")
|
|
suspend fun getRedReceivedList(@Field("package_id") package_id: String):RedReceiveListModel
|
|
suspend fun getRedReceivedList(@Field("package_id") package_id: String):RedReceiveListModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 红包领取详情(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/package/detail")
|
|
|
|
+ suspend fun getHouseRedReceivedList(@Field("package_id") package_id: String):RedReceiveListModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 主播端心愿礼物列表
|
|
* 主播端心愿礼物列表
|
|
*/
|
|
*/
|
|
@@ -537,6 +679,13 @@ interface RoomApi {
|
|
@POST("/v4/rtc/broadcast/give")
|
|
@POST("/v4/rtc/broadcast/give")
|
|
suspend fun userDianZan(@Field("room_id") room_id:String):Any
|
|
suspend fun userDianZan(@Field("room_id") room_id:String):Any
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 用户点赞(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/give")
|
|
|
|
+ suspend fun userHouseDianZan(@Field("room_id") room_id:String):Any
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 粉丝团列表
|
|
* 粉丝团列表
|
|
*/
|
|
*/
|
|
@@ -544,6 +693,13 @@ interface RoomApi {
|
|
@POST("/v4/rtc/broadcast/fans/list")
|
|
@POST("/v4/rtc/broadcast/fans/list")
|
|
suspend fun getFanClubList(@Field("room_id") room_id:String,@Field("page") page:Int,@Field("page_size") page_size:Int=50): FanClubUserModel
|
|
suspend fun getFanClubList(@Field("room_id") room_id:String,@Field("page") page:Int,@Field("page_size") page_size:Int=50): FanClubUserModel
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 粉丝团列表(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/fans/list")
|
|
|
|
+ suspend fun getHouseFanClubList(@Field("room_id") room_id:String,@Field("page") page:Int,@Field("page_size") page_size:Int=50): FanClubUserModel
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 加入粉丝团
|
|
* 加入粉丝团
|
|
*/
|
|
*/
|
|
@@ -551,6 +707,13 @@ interface RoomApi {
|
|
@POST("/v4/rtc/broadcast/fans/join")
|
|
@POST("/v4/rtc/broadcast/fans/join")
|
|
suspend fun joinFanClub(@Field("room_id") room_id:String):Any
|
|
suspend fun joinFanClub(@Field("room_id") room_id:String):Any
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 加入粉丝团(小黑屋)
|
|
|
|
+ */
|
|
|
|
+ @FormUrlEncoded
|
|
|
|
+ @POST("/v1/rtc/house/broadcast/fans/join")
|
|
|
|
+ suspend fun joinHouseFanClub(@Field("room_id") room_id:String):Any
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 开播背景图
|
|
* 开播背景图
|
|
*/
|
|
*/
|