fei.wang
2024-05-09 871d4095b07cedacb7fbef4c38d64982f539c404
src/main/java/com/flow/controller/OperationLogController.java
对比新文件
@@ -0,0 +1,32 @@
package com.flow.controller;
import com.flow.mapper.CompanyMapper;
import com.flow.pojo.Duanxinlog;
import com.flow.pojo.OperationLog;
import com.flow.service.OperationLogService;
import com.flow.util.result;
import com.flow.util.resultutil;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
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({"/hxzk"})
@Component
public class OperationLogController {
    @Autowired
    OperationLogService operationLogService;
    @GetMapping({"findOperationLog"})
    result<List<OperationLog>> findOperationLog(Integer page, Integer limit) {
        PageInfo<OperationLog> cz = this.operationLogService.FindOperationLog(page, limit);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
}