Ai和用户类型分组验证
This commit is contained in:
@@ -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>>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user