type Device struct{
Id int`json:"id"`
DeviceGroupId *int`json:"deviceGroupId"`
DeviceGroupName *string`json:"deviceGroupName"`
Name string`json:"name"`}
type Device struct{
Id int`json:"id"`
DeviceGroupId sql.NullInt64 `json:"deviceGroupId"`
DeviceGroupName sql.NullString `json:"deviceGroupName"`
Name string`json:"name"`}