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

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


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/applications/{applicationid}/checkkey")
    public ApplicationImpl checkKey(@PathVariable("applicationid") String applicationid,@RequestBody ApplicationImpl application);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/applications/{applicationid}/save")
    public ApplicationImpl save(@PathVariable("applicationid") String applicationid,@RequestBody ApplicationImpl application);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/applications/{applicationid}/getdraft")
    public ApplicationImpl getDraft(@PathVariable("applicationid") String applicationid,@RequestBody ApplicationImpl application);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/applications/{applicationid}")
    public ApplicationImpl update(@PathVariable("applicationid") String applicationid,@RequestBody ApplicationImpl application);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/applications/{applicationid}")
    public ApplicationImpl get(@PathVariable("applicationid") String applicationid);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/applications")
    public ApplicationImpl create(@RequestBody ApplicationImpl application);


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



}
