feat: 定义用户模块 User 模型与 Repository 层 #94

Merged
huanghaosheng merged 5 commits from feature/user-mode-phase2 into develop 2026-06-14 17:03:47 +08:00
Showing only changes of commit c9c174f400 - Show all commits

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"