Return imeis for contract
This commit is contained in:
@@ -27,6 +27,11 @@ type DeviceResponse struct {
|
||||
DeviceInfos *[]DeviceInfo `json:"deviceInfos"`
|
||||
}
|
||||
|
||||
type ContractDeviceInfo struct {
|
||||
ID uint `json:"id"`
|
||||
IMEI string `json:"imei"`
|
||||
}
|
||||
|
||||
func ConvertDeviceToResponse(devices []Device) []DeviceResponse {
|
||||
var deviceResponses []DeviceResponse
|
||||
for _, device := range devices {
|
||||
|
||||
Reference in New Issue
Block a user