feiyu02
2021-12-02 d8b9437e7322f9d0351e38cc3a3b5a7bb3e7bb35
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)
    }
}