This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// 自动生成模板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"
|
||||
}
|
||||
Reference in New Issue
Block a user