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


public interface UserRoleTypeFeignClient {



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

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userroletypes/{userroletype_id}/getdraft")
    public UserRoleType getDraft(@PathVariable("userroletype_id") String userroletype_id, @RequestBody UserRoleType userroletype) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userroletypes/{userroletype_id}/save")
    public UserRoleType save(@PathVariable("userroletype_id") String userroletype_id, @RequestBody UserRoleType userroletype) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userroletypes")
    public UserRoleType create(@RequestBody UserRoleType userroletype) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userroletypes/{userroletype_id}")
    public UserRoleType get(@PathVariable("userroletype_id") String userroletype_id) ;

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

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/userroletypes/{userroletype_id}")
    public UserRoleType update(@PathVariable("userroletype_id") String userroletype_id, @RequestBody UserRoleType userroletype) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/userroletypes/fetchdefault")
	public Page<UserRoleType> fetchDefault(UserRoleTypeSearchContext searchContext) ;
}
