package cn.ibizlab.businesscentral.core.odoo_base_import.client;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.businesscentral.core.odoo_base_import.domain.Base_import_tests_models_m2o_related;
import cn.ibizlab.businesscentral.core.odoo_base_import.filter.Base_import_tests_models_m2o_relatedSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[base_import_tests_models_m2o_related] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-base-import:odoo-base-import}", contextId = "base-import-tests-models-m2o-related", fallback = base_import_tests_models_m2o_relatedFallback.class)
public interface base_import_tests_models_m2o_relatedFeignClient {



    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/search")
    Page<Base_import_tests_models_m2o_related> search(@RequestBody Base_import_tests_models_m2o_relatedSearchContext context);




    @RequestMapping(method = RequestMethod.PUT, value = "/base_import_tests_models_m2o_relateds/{id}")
    Base_import_tests_models_m2o_related update(@PathVariable("id") Long id,@RequestBody Base_import_tests_models_m2o_related base_import_tests_models_m2o_related);

    @RequestMapping(method = RequestMethod.PUT, value = "/base_import_tests_models_m2o_relateds/batch")
    Boolean updateBatch(@RequestBody List<Base_import_tests_models_m2o_related> base_import_tests_models_m2o_relateds);


    @RequestMapping(method = RequestMethod.DELETE, value = "/base_import_tests_models_m2o_relateds/{id}")
    Boolean remove(@PathVariable("id") Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/base_import_tests_models_m2o_relateds/batch}")
    Boolean removeBatch(@RequestBody Collection<Long> idList);


    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds")
    Base_import_tests_models_m2o_related create(@RequestBody Base_import_tests_models_m2o_related base_import_tests_models_m2o_related);

    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/batch")
    Boolean createBatch(@RequestBody List<Base_import_tests_models_m2o_related> base_import_tests_models_m2o_relateds);


    @RequestMapping(method = RequestMethod.GET, value = "/base_import_tests_models_m2o_relateds/{id}")
    Base_import_tests_models_m2o_related get(@PathVariable("id") Long id);


    @RequestMapping(method = RequestMethod.GET, value = "/base_import_tests_models_m2o_relateds/select")
    Page<Base_import_tests_models_m2o_related> select();


    @RequestMapping(method = RequestMethod.GET, value = "/base_import_tests_models_m2o_relateds/getdraft")
    Base_import_tests_models_m2o_related getDraft();


    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/checkkey")
    Boolean checkKey(@RequestBody Base_import_tests_models_m2o_related base_import_tests_models_m2o_related);


    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/save")
    Boolean save(@RequestBody Base_import_tests_models_m2o_related base_import_tests_models_m2o_related);

    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/savebatch")
    Boolean saveBatch(@RequestBody List<Base_import_tests_models_m2o_related> base_import_tests_models_m2o_relateds);



    @RequestMapping(method = RequestMethod.POST, value = "/base_import_tests_models_m2o_relateds/searchdefault")
    Page<Base_import_tests_models_m2o_related> searchDefault(@RequestBody Base_import_tests_models_m2o_relatedSearchContext context);


}
