whycxzp
2025-04-25 0428d7bf35c95b33718ddcaf2e6e1311c5a40845
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);
 
    }
}