whycxzp
2025-03-31 4960cf95fc1a2c89046a790e5a7375dc03c035e1
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);
 
    }
}