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

    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroles")
    public UserRoleImpl create(@RequestBody UserRoleImpl userrole);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroles/{userroleid}/save")
    public UserRoleImpl save(@PathVariable("userroleid") String userroleid,@RequestBody UserRoleImpl userrole);


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/userroles/{userroleid}")
    public UserRoleImpl update(@PathVariable("userroleid") String userroleid,@RequestBody UserRoleImpl userrole);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroles/{userroleid}/checkkey")
    public UserRoleImpl checkKey(@PathVariable("userroleid") String userroleid,@RequestBody UserRoleImpl userrole);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userroles/{userroleid}")
    public UserRoleImpl get(@PathVariable("userroleid") String userroleid);


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


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userroles/{userroleid}/getdraft")
    public UserRoleImpl getDraft(@PathVariable("userroleid") String userroleid,@RequestBody UserRoleImpl userrole);


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



}
