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(); } }