whycxzp
2025-04-30 4fce1788cfb5bc37484060b068daf6303a584058
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.PersonMapper;
import com.whyc.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class DMTestService {
 
    @Autowired
    private PersonMapper mapper;
 
    public Response getPersonList() {
        List<Person> people = mapper.selectList(null);
        return new Response().set(1,people);
 
    }
}