新增智能体和房间规则管理功能
- 新增智能体(Agent)规则的增删改查(CRUD)和服务实现。 - 新增房间(Room)规则的增删改查(CRUD)和服务实现。 - 将 `PromptRule` 相关命名重构为 `AgentRule`,以提高代码清晰度。 - 将相关数据实体中表示总数的字段类型从 `Int` 修改为 `Long`。
This commit is contained in:
@@ -118,7 +118,7 @@ fun ProfileV3(
|
||||
onLike: (MomentEntity) -> Unit = {},
|
||||
onComment: (MomentEntity) -> Unit = {},
|
||||
onAgentClick: (AgentEntity) -> Unit = {},
|
||||
postCount: Int? = null, // 新增参数用于传递帖子总数
|
||||
postCount: Long? = null, // 新增参数用于传递帖子总数
|
||||
) {
|
||||
val model = MyProfileViewModel
|
||||
val pagerState = rememberPagerState(pageCount = { if (isAiAccount) 1 else 2 })
|
||||
@@ -357,7 +357,7 @@ fun ProfileV3(
|
||||
profile?.let {
|
||||
UserItem(
|
||||
accountProfileEntity = it,
|
||||
postCount = postCount ?: if (isSelf) MyProfileViewModel.momentLoader.total else moments.size
|
||||
postCount = postCount ?: if (isSelf) MyProfileViewModel.momentLoader.total else moments.size.toLong()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.aiosman.ravenow.ui.modifiers.noRippleClickable
|
||||
@Composable
|
||||
fun UserItem(
|
||||
accountProfileEntity: AccountProfileEntity,
|
||||
postCount: Int = 0
|
||||
postCount: Long = 0
|
||||
) {
|
||||
val navController = LocalNavController.current
|
||||
val AppColors = LocalAppTheme.current
|
||||
|
||||
Reference in New Issue
Block a user