dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/dtos/responses/labels.go (about) 1 package responses 2 3 import ( 4 "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos" 5 "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/common" 6 ) 7 8 type MultiLabelsWithDeviceCountResponse struct { 9 common.BaseWithTotalCountResponse `json:",inline"` 10 LabelsWithDeviceCount []dtos.LabelsWithDeviceCount `json:"labelsByDevice"` 11 } 12 13 func NewMultiLabelsWithDeviceCountResponse( 14 requestId string, 15 message string, 16 statusCode int, 17 totalCount uint32, 18 labelsWithDevice []dtos.LabelsWithDeviceCount, 19 ) MultiLabelsWithDeviceCountResponse { 20 return MultiLabelsWithDeviceCountResponse{ 21 BaseWithTotalCountResponse: common.NewBaseWithTotalCountResponse(requestId, message, statusCode, totalCount), 22 LabelsWithDeviceCount: labelsWithDevice, 23 } 24 }