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

    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/usergroups")
    public UserGroupImpl create(@RequestBody UserGroupImpl usergroup);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/usergroups/{usergroupid}/save")
    public UserGroupImpl save(@PathVariable("usergroupid") String usergroupid,@RequestBody UserGroupImpl usergroup);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/usergroups/{usergroupid}/checkkey")
    public UserGroupImpl checkKey(@PathVariable("usergroupid") String usergroupid,@RequestBody UserGroupImpl usergroup);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/usergroups/{usergroupid}/getdraft")
    public UserGroupImpl getDraft(@PathVariable("usergroupid") String usergroupid,@RequestBody UserGroupImpl usergroup);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/usergroups/{usergroupid}")
    public UserGroupImpl get(@PathVariable("usergroupid") String usergroupid);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/usergroups/{usergroupid}")
    public UserGroupImpl update(@PathVariable("usergroupid") String usergroupid,@RequestBody UserGroupImpl usergroup);


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


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



}
