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.IUniRes;
import cn.ibizlab.r7.runtime.client.base.model.UniResImpl;
import cn.ibizlab.r7.runtime.util.SearchContext;
/**
 * 实体[UniRes] 服务对象接口
 */
public interface UniResFeignClient {

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


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/unires/{uniresid}/save")
    public UniResImpl save(@PathVariable("uniresid") String uniresid,@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/unires/{uniresid}")
    public UniResImpl update(@PathVariable("uniresid") String uniresid,@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/unires/{uniresid}")
    public UniResImpl get(@PathVariable("uniresid") String uniresid);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/unires")
    public UniResImpl create(@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/unires/{uniresid}/getdraft")
    public UniResImpl getDraft(@PathVariable("uniresid") String uniresid,@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/unires/{uniresid}/getresource")
    public UniResImpl getResource(@PathVariable("uniresid") String uniresid,@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/unires/{uniresid}/checkkey")
    public UniResImpl checkKey(@PathVariable("uniresid") String uniresid,@RequestBody UniResImpl unires);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/unires/fetchselectuniresall")
    public Page<UniResImpl> fetchSelectUniresAll(SearchContext context);


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



}
