package com.chinaweal.aiccs.org.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaweal.aiccs.common.base.controller.BaseController;
import com.chinaweal.aiccs.org.entity.dto.OrgOperationLogDto;
import com.chinaweal.aiccs.org.service.SysMenuService;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.page.PageRequestDto;
import com.chinaweal.youfool.framework.springboot.rest.RestResult;
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;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Lee
 * @since 2021-06-21
 */
@RestController
@RequestMapping("/sysMenu")
public class SysMenuController extends BaseController {

    @Resource
    private SysMenuService sysMenuService;

    @ApiOperation(value = "1.分页查询组织架构操作日志", position = 1)
    @PostMapping("/listOrgOperationLog")
    public RestResult<IPage<OrgOperationLogDto>> listOrgOperationLog(@RequestBody PageRequestDto pageRequestDto) {

        IPage<OrgOperationLogDto> data = sysMenuService.listOrgOperationLog(pageRequestDto);

        return RestResult.ok(data);
    }


}

