package com.artfess.rescue.event.controller;


import com.artfess.base.annotation.ApiGroup;
import com.artfess.base.constants.ApiGroupConsts;
import com.artfess.base.query.QueryFilter;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
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 com.artfess.base.controller.BaseController;
import com.artfess.rescue.event.model.BizEventProgress;
import com.artfess.rescue.event.manager.BizEventProgressManager;

import javax.servlet.http.HttpServletResponse;

/**
 * 事件信息 前端控制器
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2025-03-21
 */
@RestController
@RequestMapping("/event/bizEventProgress/v1/")
@Api(tags = "事件演进信息")
@ApiGroup(group = {ApiGroupConsts.GROUP_BIZ_RESCUE})
public class BizEventProgressController extends BaseController<BizEventProgressManager, BizEventProgress> {

    @PostMapping(value = "/wordExport", produces = {"application/json; charset=utf-8"})
    @ApiOperation(value = "导出word", httpMethod = "POST", notes = "导出word")
    public ResponseEntity<?> wordExport(@RequestBody QueryFilter<BizEventProgress> queryFilter){
        return  baseService.export(queryFilter);
    }

}
