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


public interface UserRoleFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userroles")
    public UserRole create(@RequestBody UserRole userrole) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/userroles/{userrole_id}/save")
    public UserRole save(@PathVariable("userrole_id") String userrole_id, @RequestBody UserRole userrole) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/userroles/{userrole_id}")
    public UserRole update(@PathVariable("userrole_id") String userrole_id, @RequestBody UserRole userrole) ;

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

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userroles/{userrole_id}")
    public UserRole get(@PathVariable("userrole_id") String userrole_id) ;

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

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/userroles/{userrole_id}/getdraft")
    public UserRole getDraft(@PathVariable("userrole_id") String userrole_id, @RequestBody UserRole userrole) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/userroles/fetchdefault")
	public Page<UserRole> fetchDefault(UserRoleSearchContext searchContext) ;
}
