2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
    }
}