|
@@ -10,15 +10,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import com.benyun.entity.EventLog;
|
|
|
import com.benyun.service.EventLogService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -32,6 +24,7 @@ import java.util.Map;
|
|
|
@RestController
|
|
|
@RequestMapping("eventLog")
|
|
|
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
|
|
|
+@CrossOrigin
|
|
|
public class EventLogController {
|
|
|
/**
|
|
|
* 服务对象
|
|
@@ -47,7 +40,7 @@ public class EventLogController {
|
|
|
public Result<List<EventLog>> queryAll() {
|
|
|
return Result.success(eventLogService.queryAll());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 分页查询数据
|
|
|
*
|