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.DataEntity;
import cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.filter.*;


public interface DataEntityFeignClient {



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

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/dataentities")
    public DataEntity create(@RequestBody DataEntity dataentity) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/dataentities/{dataentity_id}")
    public DataEntity update(@PathVariable("dataentity_id") String dataentity_id, @RequestBody DataEntity dataentity) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/dataentities/{dataentity_id}/initall")
    public DataEntity initAll(@PathVariable("dataentity_id") String dataentity_id, @RequestBody DataEntity dataentity) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/dataentities/{dataentity_id}/getdraft")
    public DataEntity getDraft(@PathVariable("dataentity_id") String dataentity_id, @RequestBody DataEntity dataentity) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/dataentities/{dataentity_id}")
    public DataEntity get(@PathVariable("dataentity_id") String dataentity_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/dataentities/{dataentity_id}/save")
    public DataEntity save(@PathVariable("dataentity_id") String dataentity_id, @RequestBody DataEntity dataentity) ;

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

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/dataentities/fetchselectdeall")
	public Page<DataEntity> fetchSelectDEAll(DataEntitySearchContext searchContext) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/dataentities/fetchdefault")
	public Page<DataEntity> fetchDefault(DataEntitySearchContext searchContext) ;
}
