This commit is contained in:
2025-08-06 09:02:16 +08:00
parent 2cddbc3e73
commit c48bae28be
93 changed files with 10628 additions and 36 deletions
+20
View File
@@ -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"
}