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


public interface UserFeignClient {



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

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/users")
    public User create(@RequestBody User user) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/users/{user_id}/synctouser")
    public User syncToUser(@PathVariable("user_id") String user_id, @RequestBody User user) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/users/checkkey")
    public Boolean checkKey(@RequestBody User user) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/users/{user_id}")
    public User get(@PathVariable("user_id") String user_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/users/{user_id}/save")
    public User save(@PathVariable("user_id") String user_id, @RequestBody User user) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/users/{user_id}/getdraft")
    public User getDraft(@PathVariable("user_id") String user_id, @RequestBody User user) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/users/{user_id}")
    public User update(@PathVariable("user_id") String user_id, @RequestBody User user) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/users/fetchdefault")
	public Page<User> fetchDefault(UserSearchContext searchContext) ;
}
