xuhy
2026-05-08 d6c0f2ed698d6cdf86a0a3a8893b4d9717f3b7b1
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
33
34
35
36
package com.xiaopeng.operation.controller;
 
import com.xiaopeng.api.model.operation.SysOperLog;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.web.controller.BaseController;
import com.xiaopeng.operation.service.ISysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 操作日志记录
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/logan/operlog")
public class SysOperlogFeignController extends BaseController {
    @Autowired
    private ISysOperLogService operLogService;
    
 
 
    /**
     * 保存系统日志
     * @param sysOperLog
     * @return
     */
    @PostMapping("/saveLog")
    public R saveLog(@RequestBody SysOperLog sysOperLog) {
        operLogService.save(sysOperLog);
        return R.ok();
    }
}