package com.whyc.service;
|
|
import com.whyc.dto.DfxtDeviceDTO;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.DfxtDeviceListMapper;
|
import com.whyc.pojo.DfxtDeviceList;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class DfxtDeviceListService {
|
|
@Resource
|
private DfxtDeviceListMapper mapper;
|
|
|
public Response<List<DfxtDeviceDTO>> getDeviceList() {
|
List<DfxtDeviceDTO> list = mapper.getDeviceList();
|
return new Response<List<DfxtDeviceDTO>>().set(1,list);
|
}
|
}
|