package com.unis.flowable.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.unis.common.utils.ResponseWrapper;
import com.unis.flowable.common.vo.HastenWorkVO;

/**
 * 
 * @Description: 工作流催办Client
 * @author huyong
 * @date 2019-09-29
 * @version V1.0
 */
@FeignClient("cbl-service")
@Component
public interface HastenWorkClient{

	 //工作流催办-新增
    @PostMapping("/hastenwork/insert")
    public ResponseWrapper insertHastenWork(@RequestBody HastenWorkVO vo);

    //工作流催办-修改
    @PostMapping("/hastenwork/update")
    public ResponseWrapper updateHastenWork(@RequestBody  HastenWorkVO vo);

 	//工作流催办-分页查询列表
    @PostMapping("/hastenwork/select")
    public ResponseWrapper selectHastenWorkPageList(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
        									  @RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
       										  @RequestBody HastenWorkVO vo);

    //工作流催办-查询单个
    @PostMapping("/hastenwork/selectDetail")
    public ResponseWrapper selectHastenWorkInfo(@RequestBody  HastenWorkVO vo);
    
     //工作流催办-查看--通过主键
	@GetMapping(value = "/hastenwork/get/{id}")	
   public ResponseWrapper selectHastenWorkDetail(@RequestParam("id") Integer id);
   
      //工作流催办-删除--通过主键
	@DeleteMapping(value = "/hastenwork/del/{id}")
	
    public ResponseWrapper deleteHastenWork(@RequestParam("id") Integer id); 
	
	
	@PostMapping(value = "/hastenwork/selectList")	
    public ResponseWrapper selectHastenWorkList(@RequestBody HastenWorkVO vo);
	
	
	
}