package cn.ibizlab.r7.runtime.client.base.feign;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.r7.runtime.core.client.model.ISystem;
import cn.ibizlab.r7.runtime.client.base.model.SystemImpl;
import cn.ibizlab.r7.runtime.util.SearchContext;
/**
 * 实体[System] 服务对象接口
 */
public interface SystemFeignClient {

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


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/systems/{systemid}")
    public SystemImpl update(@PathVariable("systemid") String systemid,@RequestBody SystemImpl system);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/systems/{systemid}")
    public SystemImpl get(@PathVariable("systemid") String systemid);


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


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/systems/{systemid}/save")
    public SystemImpl save(@PathVariable("systemid") String systemid,@RequestBody SystemImpl system);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/systems/{systemid}/checkkey")
    public SystemImpl checkKey(@PathVariable("systemid") String systemid,@RequestBody SystemImpl system);


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


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/systems/fetchdefault")
    public Page<SystemImpl> fetchDefault(SearchContext context);



}
