1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.consum.base.controller;
 
import com.consum.base.service.SLoginInfoServiceImp;
import com.consum.model.po.SLoginInfo;
import com.walker.db.page.GenericPager;
import com.walker.web.ResponseValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("/pc/p/login/info")
public class SLoginInfoController {
 
    @Autowired
    private SLoginInfoServiceImp sLoginInfoService;
 
    @GetMapping("/list")
    public ResponseValue list(String userName) {
        GenericPager<SLoginInfo> list = sLoginInfoService.list(userName);
        return ResponseValue.success(list);
    }
 
}