package com.ibiz.web.external.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 com.ibiz.web.external.domain.ORGUSER;
import com.ibiz.web.external.filter.*;


public interface ORGUSERFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/web/orgusers")
    public ORGUSER create(@RequestBody ORGUSER orguser) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/orgusers/{orguser_id}/getdraft")
    public ORGUSER getDraft(@PathVariable("orguser_id") String orguser_id, @RequestBody ORGUSER orguser) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/web/orgusers/{orguser_id}")
    public ORGUSER update(@PathVariable("orguser_id") String orguser_id, @RequestBody ORGUSER orguser) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/orgusers/{orguser_id}")
    public ORGUSER get(@PathVariable("orguser_id") String orguser_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/orgusers/checkkey")
    public Boolean checkKey(@RequestBody ORGUSER orguser) ;

	@RequestMapping(method = RequestMethod.DELETE, value = "/web/orgusers/{orguser_id}")
    public Boolean remove(@PathVariable("orguser_id") String orguser_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/orgusers/{orguser_id}/save")
    public ORGUSER save(@PathVariable("orguser_id") String orguser_id, @RequestBody ORGUSER orguser) ;

    @RequestMapping(method= RequestMethod.GET , value="/web/orgusers/fetchcurorguser")
	public Page<ORGUSER> fetchCurOrgUser(ORGUSERSearchContext searchContext) ;

    @RequestMapping(method= RequestMethod.GET , value="/web/orgusers/fetchdefault")
	public Page<ORGUSER> fetchDefault(ORGUSERSearchContext searchContext) ;
}
