pet-ai/server/model/pet/pet_ai_conversations.go

21 lines
1.0 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 自动生成模板PetAiConversations
package pet
import (
"github.com/flipped-aurora/gin-vue-admin/server/global"
)
// petAiConversations表 结构体 PetAiConversations
type PetAiConversations struct {
global.GVA_MODEL
UserId *int `json:"userId" form:"userId" gorm:"comment:用户ID;column:user_id;size:20;" binding:"required"` //用户ID
PetId *int `json:"petId" form:"petId" gorm:"comment:宠物ID;column:pet_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助手
}
// TableName petAiConversations表 PetAiConversations自定义表名 pet_ai_conversations
func (PetAiConversations) TableName() string {
return "pet_ai_conversations"
}