添加新的表单文本输入组件 FormTextInput2,包含错误提示和动态显示功能;新增图标和图片资源。
This commit is contained in:
@@ -31,6 +31,12 @@ data class RegisterRequestBody(
|
||||
@SerializedName("password")
|
||||
val password: String
|
||||
)
|
||||
data class AgentMomentRequestBody(
|
||||
@SerializedName("generateText")
|
||||
val generateText: String,
|
||||
@SerializedName("sessionId")
|
||||
val sessionId: String
|
||||
)
|
||||
|
||||
data class LoginUserRequestBody(
|
||||
@SerializedName("username")
|
||||
@@ -472,6 +478,17 @@ interface RaveNowAPI {
|
||||
@Query("pageSize") pageSize: Int = 20,
|
||||
): Response<ListContainer<Agent>>
|
||||
|
||||
@Multipart
|
||||
@POST("outside/prompts")
|
||||
suspend fun createAgent(
|
||||
@Part avatar: MultipartBody.Part?,
|
||||
@Part("title") title: RequestBody?,
|
||||
@Part("desc") desc: RequestBody?,
|
||||
): Response<DataContainer<Agent>>
|
||||
|
||||
|
||||
@POST("generate/postText")
|
||||
suspend fun agentMoment(@Body body: AgentMomentRequestBody): Response<DataContainer<String>>
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user