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


public interface CIDFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/web/cids/checkkey")
    public Boolean checkKey(@RequestBody CID cid) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/cids")
    public CID create(@RequestBody CID cid) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/cids/{cid_id}")
    public CID get(@PathVariable("cid_id") String cid_id) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/cids/{cid_id}/getdraft")
    public CID getDraft(@PathVariable("cid_id") String cid_id, @RequestBody CID cid) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/web/cids/{cid_id}")
    public CID update(@PathVariable("cid_id") String cid_id, @RequestBody CID cid) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/cids/{cid_id}/save")
    public CID save(@PathVariable("cid_id") String cid_id, @RequestBody CID cid) ;

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

    @RequestMapping(method= RequestMethod.GET , value="/web/cids/fetchdefault")
	public Page<CID> fetchDefault(CIDSearchContext searchContext) ;
}
