package com.securitycontrol.system.base.controller;

import com.securitycontrol.common.core.web.domain.AjaxResult;
import com.securitycontrol.system.api.domain.SysLog;
import com.securitycontrol.system.base.service.ISysLogService;
import io.swagger.annotations.ApiOperation;
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;

import javax.annotation.Resource;

/**
 * @author：cwchen
 * @date：2024-02-28-14:01
 * @version：1.0
 * @description：系统日志
 */
@RestController
@RequestMapping("/sys/sysLog/")
public class SysLogController {

    @Resource(name = "ISysLogService")
    private ISysLogService service;

    @ApiOperation(value = "保存系统日志")
    @PostMapping("saveLogs")
    public AjaxResult saveLogs(@RequestBody SysLog sysLog) {
        return service.saveLogs(sysLog);
    }
}
