24 lines
369 B
Go
24 lines
369 B
Go
package repository
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
// 身份信息
|
|
type Identity interface {
|
|
Id() string
|
|
Type() proto.DeviceType
|
|
}
|
|
|
|
// 身份信息
|
|
type identity struct {
|
|
id string
|
|
deviceType proto.DeviceType
|
|
}
|
|
|
|
func (m identity) Id() string {
|
|
return m.id
|
|
}
|
|
|
|
func (m identity) Type() proto.DeviceType {
|
|
return m.deviceType
|
|
}
|