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

    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroletypes/{userroletypeid}/checkkey")
    public UserRoleTypeImpl checkKey(@PathVariable("userroletypeid") String userroletypeid,@RequestBody UserRoleTypeImpl userroletype);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userroletypes/{userroletypeid}/getdraft")
    public UserRoleTypeImpl getDraft(@PathVariable("userroletypeid") String userroletypeid,@RequestBody UserRoleTypeImpl userroletype);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroletypes/{userroletypeid}/save")
    public UserRoleTypeImpl save(@PathVariable("userroletypeid") String userroletypeid,@RequestBody UserRoleTypeImpl userroletype);


    @RequestMapping(method = RequestMethod.POST, value = "/baseapi/userroletypes")
    public UserRoleTypeImpl create(@RequestBody UserRoleTypeImpl userroletype);


    @RequestMapping(method = RequestMethod.GET, value = "/baseapi/userroletypes/{userroletypeid}")
    public UserRoleTypeImpl get(@PathVariable("userroletypeid") String userroletypeid);


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


    @RequestMapping(method = RequestMethod.PUT, value = "/baseapi/userroletypes/{userroletypeid}")
    public UserRoleTypeImpl update(@PathVariable("userroletypeid") String userroletypeid,@RequestBody UserRoleTypeImpl userroletype);


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



}
