package cn.ibizlab.r7.runtime.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 cn.ibizlab.r7.runtime.core.client.model.IOrgDept;
import cn.ibizlab.r7.runtime.client.org.model.OrgDeptImpl;
import cn.ibizlab.r7.runtime.util.SearchContext;
/**
 * 实体[OrgDept] 服务对象接口
 */
public interface OrgDeptFeignClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/orgapi/orgdepts/{orgdeptid}")
    public OrgDeptImpl update(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


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


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgdepts/{orgdeptid}")
    public OrgDeptImpl get(@PathVariable("orgdeptid") String orgdeptid);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgdepts/{orgdeptid}/checkkey")
    public OrgDeptImpl checkKey(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgdepts")
    public OrgDeptImpl create(@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgdepts/{orgdeptid}/getdraft")
    public OrgDeptImpl getDraft(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgdepts/{orgdeptid}/getorgdeptchild")
    public OrgDeptImpl getOrgDeptChild(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgdepts/{orgdeptid}/save")
    public OrgDeptImpl save(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgdepts/{orgdeptid}/synctousergroup")
    public OrgDeptImpl syncToUserGroup(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgdepts/{orgdeptid}/getorgdeptprent")
    public OrgDeptImpl getOrgDeptPrent(@PathVariable("orgdeptid") String orgdeptid,@RequestBody OrgDeptImpl orgdept);


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


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgdepts/fetchcur_org")
    public Page<OrgDeptImpl> fetchCUR_ORG(SearchContext context);



}
