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

    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userobjects/{userobjectid}/checkkey")
    public UserObjectImpl checkKey(@PathVariable("userobjectid") String userobjectid,@RequestBody UserObjectImpl userobject);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userobjects/{userobjectid}/save")
    public UserObjectImpl save(@PathVariable("userobjectid") String userobjectid,@RequestBody UserObjectImpl userobject);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userobjects")
    public UserObjectImpl create(@RequestBody UserObjectImpl userobject);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userobjects/{userobjectid}/getdraft")
    public UserObjectImpl getDraft(@PathVariable("userobjectid") String userobjectid,@RequestBody UserObjectImpl userobject);


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


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userobjects/{userobjectid}")
    public UserObjectImpl get(@PathVariable("userobjectid") String userobjectid);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/userobjects/{userobjectid}")
    public UserObjectImpl update(@PathVariable("userobjectid") String userobjectid,@RequestBody UserObjectImpl userobject);


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



}
