package com.flightfeather.uav.lightshare.service.impl
|
|
import com.flightfeather.uav.domain.entity.DeviceInfo
|
import com.flightfeather.uav.domain.mapper.DeviceInfoMapper
|
import com.flightfeather.uav.lightshare.bean.BaseResponse
|
import com.flightfeather.uav.lightshare.service.DeviceService
|
import org.springframework.stereotype.Service
|
|
@Service
|
class DeviceServiceImpl(
|
private val deviceInfoMapper: DeviceInfoMapper
|
) : DeviceService {
|
|
override fun getDeviceInfo(): BaseResponse<List<DeviceInfo>> {
|
val r = deviceInfoMapper.selectAll()
|
return BaseResponse(true, data = r)
|
}
|
}
|