Merge pull request 'Add pinned and archived flags to Conversation (R1)' (#4) from feature/task-sidebar-r1 into main

This commit was merged in pull request #4.
This commit is contained in:
2026-09-30 10:45:12 +00:00
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -31,6 +31,8 @@ type Conversation struct {
Owner ID `json:"owner,omitempty"` // 冗余自项目,查询过滤用
Title string `json:"title"`
ProfileID ID `json:"profileId,omitempty"` // 空为默认画像
Pinned bool `json:"pinned,omitempty"` // 侧栏置顶(方案 A P6/P8:本端组织偏好,服务端权威)
Archived bool `json:"archived,omitempty"` // 归档:列表默认隐藏,数据保留
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
+1
View File
@@ -13,6 +13,7 @@ export interface Project {
export interface Conversation {
id: ID; projectId: ID; owner?: ID; title: string; profileId?: ID;
pinned?: boolean; archived?: boolean;
createdAt: string; updatedAt: string;
}