package com.storlead.sales.controller.systemrule;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.dto.systemrule.OperationLogSearchDTO;
import com.storlead.sales.pojo.vo.systemrule.OperationLogListVO;
import com.storlead.sales.service.systemrule.OperationLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
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;

/**
 * <p>
 * 操作日志表 前端控制器
 * </p>
 *
 * @author YPZ
 * @since 2024-06-18
 */
@RestController
@RequestMapping("/operation-log")
@Api(tags = "销售: 通用日志管理相关接口")
public class OperationLogController {

    @Resource
    private OperationLogService operationLogService;

    @PostMapping(value = "/list")
    @ApiOperation(value = "日志管理查询-列表", notes = "日志管理查询-列表")
    public Result<IPage<OperationLogListVO>> list(@RequestBody OperationLogSearchDTO operationLogSearchDTO) {
        return operationLogService.selectListVO(operationLogSearchDTO);
    }
}
