package vo type HistoryMessage struct { BaseVo ChatId string `json:"chat_id"` UserId uint `json:"user_id"` RoleId uint `json:"role_id"` Type string `json:"type"` Icon string `json:"icon"` Tokens int `json:"tokens"` Content string `json:"content"` } func (HistoryMessage) TableName() string { return "chatgpt_chat_history" }