Files
customer-server/model/entity/product.go
2026-03-14 10:02:49 +08:00

26 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.
// 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"` // 最后同步时间
}