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


public interface UserGroupFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/usergroups")
    public UserGroup create(@RequestBody UserGroup usergroup) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/usergroups/{usergroup_id}/save")
    public UserGroup save(@PathVariable("usergroup_id") String usergroup_id, @RequestBody UserGroup usergroup) ;

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

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/usergroups/{usergroup_id}/getdraft")
    public UserGroup getDraft(@PathVariable("usergroup_id") String usergroup_id, @RequestBody UserGroup usergroup) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/usergroups/{usergroup_id}")
    public UserGroup get(@PathVariable("usergroup_id") String usergroup_id) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/usergroups/{usergroup_id}")
    public UserGroup update(@PathVariable("usergroup_id") String usergroup_id, @RequestBody UserGroup usergroup) ;

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

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/usergroups/fetchdefault")
	public Page<UserGroup> fetchDefault(UserGroupSearchContext searchContext) ;
}
