|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.agent.controller;
|
|
|
|
|
|
+import com.fdkankan.agent.common.BaseController;
|
|
|
import com.fdkankan.agent.common.PageInfo;
|
|
|
import com.fdkankan.agent.common.ResultData;
|
|
|
import com.fdkankan.agent.entity.AgentNewLog;
|
|
@@ -16,7 +17,7 @@ import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/agent/log")
|
|
|
-public class AgentNewLogController {
|
|
|
+public class AgentNewLogController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
IAgentNewLogService agentNewLogService;
|
|
@@ -25,8 +26,10 @@ public class AgentNewLogController {
|
|
|
public ResultData logData(){
|
|
|
return ResultData.ok( agentNewLogService.getLogDataM());
|
|
|
}
|
|
|
+
|
|
|
@PostMapping("/logList")
|
|
|
public ResultData logList(@RequestBody LogListParam param){
|
|
|
+ param.setAgentId(getAgent().getId());
|
|
|
return ResultData.ok(agentNewLogService.pageUnList(param));
|
|
|
}
|
|
|
|