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


public interface DBDFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/web/dbds/{dbd_id}/save")
    public DBD save(@PathVariable("dbd_id") String dbd_id, @RequestBody DBD dbd) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/web/dbds/{dbd_id}")
    public DBD update(@PathVariable("dbd_id") String dbd_id, @RequestBody DBD dbd) ;

	@RequestMapping(method = RequestMethod.GET, value = "/web/dbds/{dbd_id}/getdraft")
    public DBD getDraft(@PathVariable("dbd_id") String dbd_id, @RequestBody DBD dbd) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/dbds")
    public DBD create(@RequestBody DBD dbd) ;

	@RequestMapping(method = RequestMethod.POST, value = "/web/dbds/checkkey")
    public Boolean checkKey(@RequestBody DBD dbd) ;

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

	@RequestMapping(method = RequestMethod.GET, value = "/web/dbds/{dbd_id}")
    public DBD get(@PathVariable("dbd_id") String dbd_id) ;

    @RequestMapping(method= RequestMethod.GET , value="/web/dbds/fetchdefault")
	public Page<DBD> fetchDefault(DBDSearchContext searchContext) ;
}
