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


public interface UserObjectFeignClient {



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

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userobjects/{userobject_id}/save")
    public UserObject save(@PathVariable("userobject_id") String userobject_id, @RequestBody UserObject userobject) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userobjects")
    public UserObject create(@RequestBody UserObject userobject) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userobjects/{userobject_id}/getdraft")
    public UserObject getDraft(@PathVariable("userobject_id") String userobject_id, @RequestBody UserObject userobject) ;

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

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userobjects/{userobject_id}")
    public UserObject get(@PathVariable("userobject_id") String userobject_id) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/userobjects/{userobject_id}")
    public UserObject update(@PathVariable("userobject_id") String userobject_id, @RequestBody UserObject userobject) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/userobjects/fetchdefault")
	public Page<UserObject> fetchDefault(UserObjectSearchContext searchContext) ;
}
