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.IOrg;
import com.ibiz.client.org.model.OrgImpl;
import com.ibiz.util.SearchContext;
/**
 * 实体[Org] 服务对象接口
 */
public interface OrgFeignClient {

    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgs/{orgid}/getdraft")
    public OrgImpl getDraft(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgs/{orgid}/getorgprent")
    public OrgImpl getOrgPrent(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


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


    @RequestMapping(method = RequestMethod.PUT, value = "/orgapi/orgs/{orgid}")
    public OrgImpl update(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgs/{orgid}")
    public OrgImpl get(@PathVariable("orgid") String orgid);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgs")
    public OrgImpl create(@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgs/{orgid}/save")
    public OrgImpl save(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgs/{orgid}/synctousergroup")
    public OrgImpl syncToUserGroup(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.POST, value = "/orgapi/orgs/{orgid}/checkkey")
    public OrgImpl checkKey(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


    @RequestMapping(method = RequestMethod.GET, value = "/orgapi/orgs/{orgid}/getorgchild")
    public OrgImpl getOrgChild(@PathVariable("orgid") String orgid,@RequestBody OrgImpl org);


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



}
