dev 分支暂存

This commit is contained in:
2026-05-16 08:26:56 +08:00
parent 58c8caa570
commit eb4129176c
71 changed files with 8474 additions and 214 deletions
+24
View File
@@ -0,0 +1,24 @@
package model
import "time"
// Session 对话会话
type Session struct {
ID string `json:"id" db:"id"`
UserID string `json:"user_id" db:"user_id"`
Title string `json:"title" db:"title"`
Persona string `json:"persona" db:"persona"` // cyrene | ...
Mode string `json:"mode" db:"mode"` // text | voice_assistant
MessageCount int `json:"message_count" db:"message_count"`
IsActive bool `json:"is_active" db:"is_active"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
// SessionCreateParams 创建会话参数
type SessionCreateParams struct {
UserID string `json:"user_id"`
Title string `json:"title"`
Persona string `json:"persona"`
Mode string `json:"mode"`
}