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

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


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/users")
    public UserImpl create(@RequestBody UserImpl user);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/users/{userid}/synctouser")
    public UserImpl syncToUser(@PathVariable("userid") String userid,@RequestBody UserImpl user);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/users/{userid}/checkkey")
    public UserImpl checkKey(@PathVariable("userid") String userid,@RequestBody UserImpl user);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/users/{userid}")
    public UserImpl get(@PathVariable("userid") String userid);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/users/{userid}/save")
    public UserImpl save(@PathVariable("userid") String userid,@RequestBody UserImpl user);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/users/{userid}/getdraft")
    public UserImpl getDraft(@PathVariable("userid") String userid,@RequestBody UserImpl user);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/users/{userid}")
    public UserImpl update(@PathVariable("userid") String userid,@RequestBody UserImpl user);


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



}
