package com.hxzk.controller; import com.github.pagehelper.PageInfo; import com.hxzk.pojo.TbFzanchor; import com.hxzk.pojo.TbFzlog; import com.hxzk.service.FzLogService; 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.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/") public class FzLogController{ @Autowired FzLogService fzLogService; @GetMapping("findFzLog") result> findFzLog(Integer page, Integer limit){ PageInfo cz= fzLogService.findAll(page, limit); return resultutil.returnSuccess(cz.getTotal(), cz.getList()); } @PostMapping("findFzLogtableSearch") result> findtableSearch(Integer page, Integer limit, TbFzlog fzlog){ PageInfo cz= fzLogService.findSearch(page, limit,fzlog); return resultutil.returnSuccess(cz.getTotal(), cz.getList()); } }