whycxzp
2025-03-26 7caa838a2252ffedbc7437de963f2495819fcb1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
    }
}