package com.ibiz.client.org.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 com.ibiz.core.client.model.IOrgUser;
import com.ibiz.client.org.model.OrgUserImpl;
import com.ibiz.util.SearchContext;
/**
 * 实体[OrgUser] 服务对象接口
 */
public interface OrgUserFeignClient {

    @RequestMapping(method = RequestMethod.DELETE, value = "/orgapi/orgusers/{orguserid}")
    public Boolean remove(@PathVariable("orguserid") String orguserid);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgusers/{orguserid}/save")
    public OrgUserImpl save(@PathVariable("orguserid") String orguserid,@RequestBody OrgUserImpl orguser);


    @RequestMapping(method = RequestMethod.PUT, value = "/orgapi/orgusers/{orguserid}")
    public OrgUserImpl update(@PathVariable("orguserid") String orguserid,@RequestBody OrgUserImpl orguser);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgusers/{orguserid}/checkkey")
    public OrgUserImpl checkKey(@PathVariable("orguserid") String orguserid,@RequestBody OrgUserImpl orguser);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgusers/{orguserid}/getdraft")
    public OrgUserImpl getDraft(@PathVariable("orguserid") String orguserid,@RequestBody OrgUserImpl orguser);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgusers")
    public OrgUserImpl create(@RequestBody OrgUserImpl orguser);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgusers/{orguserid}")
    public OrgUserImpl get(@PathVariable("orguserid") String orguserid);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgusers/fetchdefault")
    public Page<OrgUserImpl> fetchDefault(SearchContext context);



}
