package cn.ibizlab.businesscentral.core.odoo_mail.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_mail.domain.Mail_wizard_invite;
import cn.ibizlab.businesscentral.core.odoo_mail.filter.Mail_wizard_inviteSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[mail_wizard_invite] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-mail:odoo-mail}", contextId = "mail-wizard-invite", fallback = mail_wizard_inviteFallback.class)
public interface mail_wizard_inviteFeignClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/mail_wizard_invites/{id}")
    Mail_wizard_invite update(@PathVariable("id") Long id,@RequestBody Mail_wizard_invite mail_wizard_invite);

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



    @RequestMapping(method = RequestMethod.POST, value = "/mail_wizard_invites/search")
    Page<Mail_wizard_invite> search(@RequestBody Mail_wizard_inviteSearchContext context);



    @RequestMapping(method = RequestMethod.POST, value = "/mail_wizard_invites")
    Mail_wizard_invite create(@RequestBody Mail_wizard_invite mail_wizard_invite);

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



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


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

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



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


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


    @RequestMapping(method = RequestMethod.POST, value = "/mail_wizard_invites/checkkey")
    Boolean checkKey(@RequestBody Mail_wizard_invite mail_wizard_invite);


    @RequestMapping(method = RequestMethod.POST, value = "/mail_wizard_invites/save")
    Boolean save(@RequestBody Mail_wizard_invite mail_wizard_invite);

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



    @RequestMapping(method = RequestMethod.POST, value = "/mail_wizard_invites/searchdefault")
    Page<Mail_wizard_invite> searchDefault(@RequestBody Mail_wizard_inviteSearchContext context);


}
