ludc
2023-11-09 6b0971b690de6e50d43b81799ba0378013455cdb
Source/UBCS/ubcs-ops/ubcs-log/src/main/java/com/vci/ubcs/core/log/controller/LogSystemController.java
@@ -1,9 +1,17 @@
package com.vci.ubcs.core.log.controller;
import com.vci.ubcs.core.log.service.ILogSystemService;
import com.vci.ubcs.log.entity.SystemLog;
import lombok.AllArgsConstructor;
import org.springblade.core.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
 * 本地系统日志
@@ -12,10 +20,18 @@
 */
@NonDS
@RestController
@AllArgsConstructor
//@AllArgsConstructor
@RequestMapping("/systemLog")
public class LogSystemController {
   @Autowired
   private ILogSystemService logSystemService;
   @GetMapping("/lazy-list")
   private R<List<SystemLog>> getSystemLogList(@RequestParam String serviceName){
       return R.data(logSystemService.getSystemLogList(serviceName));
   }