customer_service.go
688 字节
package domain
import "time"
type ImCustomerService struct {
// id
Id int64
// 用户id(合伙人Id)
UserId int64
// IM唯一id
ImId string
// IM颁发的token
ImToken string
// 创建时间
CreateTime time.Time
// 更新时间
UpdateTime time.Time
}
type ImCustomerServiceRepository interface {
Save(dm *ImCustomerService) (*ImCustomerService, error)
Remove(dm *ImCustomerService) (*ImCustomerService, error)
FindOne(queryOptions map[string]interface{}) (*ImCustomerService, error)
Find(queryOptions map[string]interface{}) (int64, []*ImCustomerService, error)
}
func (m *ImCustomerService) Identify() interface{} {
if m.Id == 0 {
return nil
}
return m.Id
}