Exemple #1
0
func NewSearchQuery2(begin, count int) *SearchQuery {
	return &SearchQuery{
		Type:  2,
		Begin: util.Int(begin),
		Count: util.Int(count),
	}
}
Exemple #2
0
func NewDeviceIdentifier2(uuid string, major, minor int) *DeviceIdentifier {
	return &DeviceIdentifier{
		UUID:  uuid,
		Major: util.Int(major),
		Minor: util.Int(minor),
	}
}
Exemple #3
0
func NewSearchQuery2(pageId int64, begin, count int) *SearchQuery {
	return &SearchQuery{
		Type:   2,
		PageId: util.Int64(pageId),
		Begin:  util.Int(begin),
		Count:  util.Int(count),
	}
}
Exemple #4
0
func NewSearchQuery1X(deviceIdentifier *device.DeviceIdentifier, begin, count int) *SearchQuery {
	return &SearchQuery{
		Type:             1,
		DeviceIdentifier: deviceIdentifier,
		Begin:            util.Int(begin),
		Count:            util.Int(count),
	}
}
Exemple #5
0
func NewSearchQuery3(applyId int64, begin, count int) *SearchQuery {
	return &SearchQuery{
		Type:    3,
		ApplyId: util.Int64(applyId),
		Begin:   util.Int(begin),
		Count:   util.Int(count),
	}
}
Exemple #6
0
func NewDeviceIdentifier3(deviceId int64, uuid string, major, minor int) *DeviceIdentifier {
	return &DeviceIdentifier{
		DeviceId: util.Int64(deviceId),
		UUID:     uuid,
		Major:    util.Int(major),
		Minor:    util.Int(minor),
	}
}