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


public interface CPXHFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/web/cpxhs")
    public CPXH create(@RequestBody CPXH cpxh) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/web/cpxhs/{cpxh_id}")
    public CPXH update(@PathVariable("cpxh_id") String cpxh_id, @RequestBody CPXH cpxh) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/cpxhs/{cpxh_id}/getdraft")
    public CPXH getDraft(@PathVariable("cpxh_id") String cpxh_id, @RequestBody CPXH cpxh) ;

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

	@RequestMapping(method = RequestMethod.POST, value = "/web/cpxhs/checkkey")
    public Boolean checkKey(@RequestBody CPXH cpxh) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/cpxhs/{cpxh_id}/save")
    public CPXH save(@PathVariable("cpxh_id") String cpxh_id, @RequestBody CPXH cpxh) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/cpxhs/{cpxh_id}")
    public CPXH get(@PathVariable("cpxh_id") String cpxh_id) ;

    @RequestMapping(method= RequestMethod.GET , value="/web/cpxhs/fetchdefault")
	public Page<CPXH> fetchDefault(CPXHSearchContext searchContext) ;
}
