package proto import "service/dbstruct" type OpListCallEvaluationVO struct { //用户侧数据 Avatar *dbstruct.MediaComponent `json:"avatar" bson:"avatar"` // 头像 Name *string `json:"name" bson:"name"` // 用户名 Level *int64 `json:"level" bson:"level"` // 等级 //通话记录表侧数据 SubMid *int64 `json:"sub_mid" bson:"sub_mid"` // 主语mid(用户) Predicate *int64 `json:"predicate" bson:"predicate"` // 谓词 Tags *[]int64 `json:"tags" bson:"tags"` // 用户打标 } func (vo *OpListCallEvaluationVO) CopyAccount(account *dbstruct.Account) *OpListCallEvaluationVO { vo.Avatar = account.Avatar vo.Level = account.Level vo.Name = account.Name return vo } func (vo *OpListCallEvaluationVO) CopyHistory(callhistory *dbstruct.CallHistory) *OpListCallEvaluationVO { vo.SubMid = callhistory.SubMid vo.Predicate = callhistory.Predicate vo.Tags = callhistory.Tags return vo }