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

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


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/dataentities")
    public DataEntityImpl create(@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/dataentities/{dataentityid}")
    public DataEntityImpl update(@PathVariable("dataentityid") String dataentityid,@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/dataentities/{dataentityid}/initall")
    public DataEntityImpl initAll(@PathVariable("dataentityid") String dataentityid,@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/dataentities/{dataentityid}/getdraft")
    public DataEntityImpl getDraft(@PathVariable("dataentityid") String dataentityid,@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/dataentities/{dataentityid}")
    public DataEntityImpl get(@PathVariable("dataentityid") String dataentityid);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/dataentities/{dataentityid}/save")
    public DataEntityImpl save(@PathVariable("dataentityid") String dataentityid,@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/dataentities/{dataentityid}/checkkey")
    public DataEntityImpl checkKey(@PathVariable("dataentityid") String dataentityid,@RequestBody DataEntityImpl dataentity);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/dataentities/fetchselectdeall")
    public Page<DataEntityImpl> fetchSelectDEAll(SearchContext context);


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



}
