package cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.feign;

import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.domain.UniRes;
import cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.filter.*;


public interface UniResFeignClient {



	@RequestMapping(method = RequestMethod.DELETE, value = "/runtimemgr/unires/{unires_id}")
    public Boolean remove(@PathVariable("unires_id") String unires_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/unires/{unires_id}/save")
    public UniRes save(@PathVariable("unires_id") String unires_id, @RequestBody UniRes unires) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/unires/{unires_id}")
    public UniRes update(@PathVariable("unires_id") String unires_id, @RequestBody UniRes unires) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/unires/{unires_id}")
    public UniRes get(@PathVariable("unires_id") String unires_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/unires")
    public UniRes create(@RequestBody UniRes unires) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/unires/{unires_id}/getdraft")
    public UniRes getDraft(@PathVariable("unires_id") String unires_id, @RequestBody UniRes unires) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/unires/{unires_id}/getresource")
    public UniRes getResource(@PathVariable("unires_id") String unires_id, @RequestBody UniRes unires) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/unires/checkkey")
    public Boolean checkKey(@RequestBody UniRes unires) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/unires/fetchselectuniresall")
	public Page<UniRes> fetchSelectUniresAll(UniResSearchContext searchContext) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/unires/fetchdefault")
	public Page<UniRes> fetchDefault(UniResSearchContext searchContext) ;
}
