package com.unis.flowable.client;

import com.unis.common.utils.ResponseWrapper;
import com.unis.flowable.common.vo.FlowTodoQuerVO;
import com.unis.flowable.common.vo.FlowTodoVO;
import com.unis.flowable.common.vo.StartTodoVO;

import io.swagger.annotations.ApiOperation;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther:张新亮
 * @Date: 2019/7/12 0012 15:00
 * @Description:
 */
@FeignClient(name = "flowable-server")
@Component
public interface FlowTodoClient {
	
	@RequestMapping(value = "todo", method = RequestMethod.POST)
	@ApiOperation(value="新待办", notes = "开始新待办")
	public ResponseWrapper startNewTask(@RequestBody StartTodoVO startTodoVO);
	
	
	@RequestMapping(value = "complete", method = RequestMethod.POST)
	@ApiOperation(value="审批", notes = "审批")
	public  ResponseWrapper complete(
			@RequestBody FlowTodoVO completeVO
	);


	@RequestMapping(value = "todoList", method = RequestMethod.POST)
	@ApiOperation(value="获取待办任务列表---不分页", notes = "待办列表")
	public ResponseWrapper getUserTaskNoPage(@RequestBody FlowTodoQuerVO flowTodoQuerVO);

}