package cn.ibizlab.businesscentral.core.odoo_note.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_note.domain.Note_note;
import cn.ibizlab.businesscentral.core.odoo_note.filter.Note_noteSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[note_note] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-note:odoo-note}", contextId = "note-note", fallback = note_noteFallback.class)
public interface note_noteFeignClient {


    @RequestMapping(method = RequestMethod.PUT, value = "/note_notes/{id}")
    Note_note update(@PathVariable("id") Long id,@RequestBody Note_note note_note);

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


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



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

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



    @RequestMapping(method = RequestMethod.POST, value = "/note_notes/search")
    Page<Note_note> search(@RequestBody Note_noteSearchContext context);



    @RequestMapping(method = RequestMethod.POST, value = "/note_notes")
    Note_note create(@RequestBody Note_note note_note);

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


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


}
