UI调整,群聊开发

This commit is contained in:
weber
2025-08-20 19:19:14 +08:00
parent 791b24b2fb
commit 8f8c2ff2e9
27 changed files with 709 additions and 513 deletions

View File

@@ -44,19 +44,27 @@ data class SingleChatRequestBody(
val generateText: String,
)
data class GroupChatRequestBody(
@SerializedName("trtcGroupId")
val trtcGroupId: String,
)
data class SendChatAiRequestBody(
@SerializedName("trtcGroupId")
val trtcGroupId: String? = null,
@SerializedName("fromTrtcUserId")
val fromTrtcUserId: String,
val fromTrtcUserId: String? = null,
@SerializedName("toTrtcUserId")
val toTrtcUserId: String,
val toTrtcUserId: String? = null,
@SerializedName("message")
val message: String,
@SerializedName("skipTrtc")
val skipTrtc: Boolean,
val skipTrtc: Boolean? = true,
)
data class CreateGroupChatRequestBody(
@SerializedName("name")
val name: String,
@@ -420,6 +428,8 @@ interface RaveNowAPI {
@Query("nickname") search: String? = null,
@Query("followerId") followerId: Int? = null,
@Query("followingId") followingId: Int? = null,
@Query("includeAI") includeAI: Boolean? = false,
@Query("chatSessionIdNotNull") chatSessionIdNotNull: Boolean? = true,
): Response<ListContainer<AccountProfile>>
@POST("register/google")
@@ -533,6 +543,9 @@ interface RaveNowAPI {
@POST("generate/postText")
suspend fun agentMoment(@Body body: AgentMomentRequestBody): Response<DataContainer<String>>
@GET("outside/rooms/open")
suspend fun createGroupChatAi(@Query("trtcGroupId") trtcGroupId: String): Response<DataContainer<Unit>>
@POST("outside/rooms/create-single-chat")
suspend fun createSingleChat(@Body body: SingleChatRequestBody): Response<DataContainer<Unit>>