24 lines
1.6 KiB
Go
24 lines
1.6 KiB
Go
// 自动生成模板PetAiAssistantConversations
|
||
package pet
|
||
|
||
import (
|
||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||
)
|
||
|
||
// petAiAssistantConversations表 结构体 PetAiAssistantConversations
|
||
type PetAiAssistantConversations struct {
|
||
global.GVA_MODEL
|
||
UserId *int `json:"userId" form:"userId" gorm:"comment:用户ID;column:user_id;size:20;" binding:"required"` //用户ID
|
||
MessageContent *string `json:"messageContent" form:"messageContent" gorm:"comment:消息内容;column:message_content;" binding:"required"` //消息内容
|
||
Role *string `json:"role" form:"role" gorm:"comment:发送者角色:user-用户,assistant-AI助手;column:role;size:20;" binding:"required"` //发送者角色:user-用户,assistant-AI助手
|
||
SessionId *string `json:"sessionId" form:"sessionId" gorm:"comment:会话ID;column:session_id;size:64;"` //会话ID
|
||
IsSensitive *bool `json:"isSensitive" form:"isSensitive" gorm:"comment:是否包含敏感词;column:is_sensitive;default:false;"` //是否包含敏感词
|
||
TokenCount *int `json:"tokenCount" form:"tokenCount" gorm:"comment:Token消耗数量;column:token_count;default:0;"` //Token消耗数量
|
||
ResponseTime *int `json:"responseTime" form:"responseTime" gorm:"comment:响应时间(ms);column:response_time;default:0;"` //响应时间(ms)
|
||
}
|
||
|
||
// TableName petAiAssistantConversations表 PetAiAssistantConversations自定义表名 pet_ai_assistant_conversations
|
||
func (PetAiAssistantConversations) TableName() string {
|
||
return "pet_ai_assistant_conversations"
|
||
}
|