lxw
2022-07-14 125b108d36eafd97fbd1d32569daf41819b5fd98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.whyc.service;
 
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.UserInfMapper;
import com.whyc.pojo.UserInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class UserInfService {
    @Resource
    private UserInfMapper mapper;
 
    //查询用户信息
    public Response searchUserInf() {
        List<UserInf> list=mapper.searchUserInf();
        PageInfo pageInfo=new PageInfo(list);
        return new Response().set(1,pageInfo,"查询成功");
    }
}