riku
2021-12-03 e99f1cd836475a059ed6fdcbd4235416ba108dd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
    }
}