26 lines
1.7 KiB
Go
26 lines
1.7 KiB
Go
|
|
package entity
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"gitea.com/red-future/common/beans"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
const DataCollection = "data"
|
|||
|
|
|
|||
|
|
type Data struct {
|
|||
|
|
beans.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
|||
|
|
|
|||
|
|
// 业务字段
|
|||
|
|
CustomerId string `bson:"customerId" json:"customerId"` // 客户ID
|
|||
|
|
AccountName string `bson:"accountName" json:"accountName"` // 客服账号名称
|
|||
|
|
CustomerServicePlatform string `bson:"customerServicePlatform" json:"customerServicePlatform"` // 客服平台
|
|||
|
|
CustomerServiceName string `bson:"customerServiceName" json:"customerServiceName"` // 客服名称
|
|||
|
|
IsInbound bool `bson:"isInbound" json:"isInbound"` // 用户是否点开了客服页面
|
|||
|
|
IsActive bool `bson:"isActive" json:"isActive"` // 用户是否开口询问
|
|||
|
|
IsServed bool `bson:"isServed" json:"isServed"` // 客服是否回答了用户
|
|||
|
|
HasSentContactCard bool `bson:"hasSentContactCard" json:"hasSentContactCard"` // 客服是否发送了联系卡
|
|||
|
|
HasSentNameCard bool `bson:"hasSentNameCard" json:"hasSentNameCard"` // 客服是否发送了名称卡
|
|||
|
|
HasLeftContactInfo bool `bson:"hasLeftContactInfo" json:"hasLeftContactInfo"` // 用户是否留下了联系信息
|
|||
|
|
SessionStartTime int64 `bson:"sessionStartTime" json:"sessionStartTime"` // 业务数据的时间
|
|||
|
|
MessageTime int64 `bson:"messageTime" json:"messageTime"` // 消息时间
|
|||
|
|
}
|