Ai和用户类型分组验证

This commit is contained in:
weber
2025-08-08 18:53:10 +08:00
parent 1bb0adeb90
commit 54ca1d3f1c
6 changed files with 95 additions and 30 deletions

View File

@@ -43,6 +43,16 @@ data class SingleChatRequestBody(
val generateText: String,
)
data class SendChatAiRequestBody(
@SerializedName("fromTrtcUserId")
val fromTrtcUserId: String,
@SerializedName("toTrtcUserId")
val toTrtcUserId: String,
@SerializedName("message")
val message: String,
)
data class LoginUserRequestBody(
@SerializedName("username")
val username: String? = null,
@@ -512,6 +522,9 @@ interface RaveNowAPI {
@POST("outside/rooms/create-single-chat")
suspend fun createSingleChat(@Body body: SingleChatRequestBody): Response<DataContainer<Unit>>
@POST("outside/rooms/message")
suspend fun sendChatAiMessage(@Body body: SendChatAiRequestBody): Response<DataContainer<Unit>>