package cn.ibizlab.businesscentral.core.odoo_account.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_account.domain.Account_payment;
import cn.ibizlab.businesscentral.core.odoo_account.filter.Account_paymentSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[account_payment] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-account:odoo-account}", contextId = "account-payment", fallback = account_paymentFallback.class)
public interface account_paymentFeignClient {


    @RequestMapping(method = RequestMethod.POST, value = "/account_payments/search")
    Page<Account_payment> search(@RequestBody Account_paymentSearchContext context);



    @RequestMapping(method = RequestMethod.POST, value = "/account_payments")
    Account_payment create(@RequestBody Account_payment account_payment);

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


    @RequestMapping(method = RequestMethod.PUT, value = "/account_payments/{id}")
    Account_payment update(@PathVariable("id") Long id,@RequestBody Account_payment account_payment);

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


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

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




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


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


}
