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


public interface SystemFeignClient {



	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/systems")
    public System create(@RequestBody System system) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/systems/{system_id}")
    public System update(@PathVariable("system_id") String system_id, @RequestBody System system) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/systems/{system_id}")
    public System get(@PathVariable("system_id") String system_id) ;

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

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/systems/{system_id}/save")
    public System save(@PathVariable("system_id") String system_id, @RequestBody System system) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/systems/checkkey")
    public Boolean checkKey(@RequestBody System system) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/systems/{system_id}/getdraft")
    public System getDraft(@PathVariable("system_id") String system_id, @RequestBody System system) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/systems/fetchdefault")
	public Page<System> fetchDefault(SystemSearchContext searchContext) ;
}
