package com.landtool.lanbase.modules.api.controller.MapPortal;
|
|
import java.net.URLDecoder;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import com.landtool.lanbase.modules.log.service.LogActionService;
|
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
|
@RequestMapping("api/logAction")
|
@Controller
|
@Api(value = "", tags = {"日志操作"})
|
public class logActionController {
|
@Autowired
|
private LogActionService logActionService;
|
|
// 已作废
|
@ResponseBody
|
@PostMapping("addLog")
|
@ApiOperation(value = "添加操作日志", notes = "")
|
public void logAction(String log,String userid) {
|
log = URLDecoder.decode(log);
|
String logMessage = log + "," + userid;
|
logActionService.saveLogAction(logMessage);
|
}
|
}
|