聊天室功能、安卓端界面代码

This commit is contained in:
ShiQi 2026-01-08 16:17:02 +08:00
parent 5191e3d484
commit 124026ba62

View File

@ -1023,4 +1023,40 @@ public interface ApiService {
Call<ApiResponse<PageResponse<WorksResponse>>> getMyCollectedWorks( Call<ApiResponse<PageResponse<WorksResponse>>> getMyCollectedWorks(
@Query("page") int page, @Query("page") int page,
@Query("pageSize") int pageSize); @Query("pageSize") int pageSize);
// ==================== 聊天室接口 ====================
/**
* 获取聊天室列表
*/
@GET("api/front/chatroom/list")
Call<ApiResponse<PageResponse<ChatRoomResponse>>> getChatRoomList(
@Query("page") int page,
@Query("limit") int limit);
/**
* 获取聊天室详情
*/
@GET("api/front/chatroom/detail/{roomId}")
Call<ApiResponse<ChatRoomResponse>> getChatRoomDetail(@Path("roomId") int roomId);
/**
* 检查用户是否可以进入聊天室
*/
@GET("api/front/chatroom/check-entry/{roomId}")
Call<ApiResponse<Map<String, Object>>> checkChatRoomEntry(@Path("roomId") int roomId);
/**
* 支付金币进入聊天室
*/
@POST("api/front/chatroom/pay-entry/{roomId}")
Call<ApiResponse<Map<String, Object>>> payChatRoomEntry(@Path("roomId") int roomId);
/**
* 获取我的聊天室进入记录
*/
@GET("api/front/chatroom/my-entry-records")
Call<ApiResponse<PageResponse<Map<String, Object>>>> getMyChatRoomEntryRecords(
@Query("page") int page,
@Query("limit") int limit);
} }