feat: 扩展 models 新增 User 结构体

This commit is contained in:
hhs
2026-06-14 16:53:54 +08:00
parent c0972856c6
commit c9c174f400

View File

@@ -41,6 +41,15 @@ func (p SessionConfigPatch) Apply(cfg *SessionConfig) {
}
}
// User 用户。
type User struct {
ID string `json:"id"`
Username string `json:"username"`
PasswordHash string `json:"-"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// Message 对话消息。
type Message struct {
Role string `json:"role"` // "user" | "assistant"