1
This commit is contained in:
25
model/entity/product.go
Normal file
25
model/entity/product.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// Package entity - 产品实体
|
||||
// 功能:定义产品表结构,支持多客服账号绑定、RAGFlow同步记录
|
||||
package entity
|
||||
|
||||
import (
|
||||
"gitea.com/red-future/common/beans"
|
||||
)
|
||||
|
||||
// Product 产品实体
|
||||
const ProductCollection = "product"
|
||||
|
||||
type Product struct {
|
||||
beans.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
||||
|
||||
// 业务字段
|
||||
Name string `bson:"name" json:"name"` // 产品名称
|
||||
Description string `bson:"description" json:"description"` // 产品详情
|
||||
|
||||
// 客服账号绑定(一个产品可以被多个账号使用)
|
||||
AccountNames []string `bson:"accountNames" json:"accountNames"` // 绑定的客服账号名称列表
|
||||
|
||||
// RAGFlow同步字段(租户级知识库,每个客服账号独立同步记录)
|
||||
RagSyncRecords []RagSyncRecord `bson:"ragSyncRecords" json:"ragSyncRecords"` // RAGFlow同步记录(按客服账号)
|
||||
RagLastSyncTime string `bson:"ragLastSyncTime" json:"ragLastSyncTime"` // 最后同步时间
|
||||
}
|
||||
Reference in New Issue
Block a user