service/dbstruct/contact_customer_service.go

21 lines
804 B
Go
Raw 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 dbstruct
type ContactCustomerService struct {
Id *int64 `json:"id" bson:"_id"` // 联系客服表id
SessionId *int64 `json:"session_id" bson:"session_id"` // sessionId
Predicate *int64 `json:"predicate" bson:"predicate"` // 谓词0-联系客服1-客服处理
Message *string `json:"message" bson:"message"` // 发送信息
IsRead *int64 `json:"is_read" bson:"is_read"` // 是否已读
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
}
func (p *ContactCustomerService) GetSessionId() int64 {
if p == nil || p.SessionId == nil {
return -1
}
return *p.SessionId
}