You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
743 B

package model
import (
"time"
)
const (
CustomerTrailInitiatorTypeCustomer = 1 // 客户
CustomerTrailInitiatorTypeBroker = 2 // 经纪人
CustomerTrailContentTypeText = 1 // 文本
CustomerTrailContentTypeInvite = 2 // 邀约看车
CustomerTrailContentTypeReserve = 3 // 邀约卖车
)
type CustomerTrail struct {
Id uint `gorm:"primaryKey"`
CustomerId uint // 客户id
Type string // 类型
InitiatorId uint // 发起人id
InitiatorName string // 发起人
InitiatorType uint // 发起人类型 1=客户 2=经纪人
ContentType uint // 内容类型 1=文本 2=邀约看车 3=邀约卖车
ContentId uint // 内容id
Content string // 内容
CreatedAt time.Time
}