package com.unis.flowable.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
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.ItemFilterVO;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@FeignClient(name = "flowable-server")
@Component
public interface HomePageTodoClient {

	@ApiOperation(value = "【粮食首页】查询待办事项", notes = "参数：起始页，每页展示行数")
	@PostMapping(value = "/hometodo/findWaitItemForGrain/{page}/{size}")
	@ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "起始页", required = true),
			@ApiImplicitParam(name = "size", value = "每页展示行数", required = true) })
	public ResponseWrapper findWaitItemForGrain(@RequestParam("page") Integer page, @PathVariable("size") Integer size, @RequestBody ItemFilterVO itemFilterVO);
	
	 @ApiOperation(value = "查询待办事项-----待办事项", notes = "主要参数：用户登录账号")
	    @PostMapping(value = "/hometodo/queryToDoItems")
	    public ResponseWrapper queryToDoItems();
}
