package com.hxzk.controller; import com.github.pagehelper.PageInfo; import com.hxzk.pojo.TbFakahuanlog; import com.hxzk.pojo.TbFakaji; import com.hxzk.service.FaKaHuanLogService; 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 FaKaHuanLogController { @Autowired FaKaHuanLogService faKaHuanLogService; @GetMapping("findFaKaHuan") result> findFaKa(Integer page, Integer limit){ PageInfo cz= faKaHuanLogService.findAll(page, limit); return resultutil.returnSuccess(cz.getTotal(), cz.getList()); } }