package com.codvision.workflow.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.commoncore.common.ResponseEntity;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.workflow.entity.WorkFlowCcItem;
import com.codvision.workflow.service.WorkFlowCcItemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
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 java.util.Map;


/**
 * @author hxl
 */
@Api(tags = "工作流抄送事项管理")
@RestController
@RequiredArgsConstructor
@RequestMapping("/flowCcItem")
public class WorkFlowCcItemController {

    private final WorkFlowCcItemService service;
    @PostMapping("/getPageList")
    @ApiOperation("分页列表")
    public ResponseEntity<IPage<WorkFlowCcItem>> getPageList(@RequestBody QueryPage<Map<String, Object>> queryPage) {
        return new ResponseEntity<IPage<WorkFlowCcItem>>().data(service.getPageResult(queryPage));
    }

}

