添加新的表单文本输入组件 FormTextInput2,包含错误提示和动态显示功能;新增图标和图片资源。

This commit is contained in:
weber
2025-08-05 13:56:03 +08:00
parent 29d2bb753f
commit 3e544844bb
22 changed files with 712 additions and 116 deletions

View File

@@ -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>>
}