zhitong.yu
2024-10-11 4f58a93c95ff123d51adcb8fa2e521333e8ab022
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
26
27
package com.hxzk.controller;
 
import com.github.pagehelper.PageInfo;
import com.hxzk.pojo.TbFakahuanlog;
import com.hxzk.pojo.TbFakaqulog;
import com.hxzk.service.FaKaHuanLogService;
import com.hxzk.service.FaKaQuService;
import com.hxzk.util.result;
import com.hxzk.util.resultutil;
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;
 
import java.util.List;
 
@RestController
@RequestMapping("/")
public class FaKaQuLogController {
    @Autowired
    FaKaQuService faKaQuService;
    @GetMapping("findFaKaQu")
    result<List<TbFakaqulog>> findFaKaQu(Integer page, Integer limit){
        PageInfo<TbFakaqulog> cz= faKaQuService.findAll(page, limit);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
}