package org.springblade.party.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.party.entity.Meeting;
import org.springblade.party.vo.MeetingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.util.List;

/**
 * 会议列表表 Feign
 *
 * @author lianghanqiang
 * @since 2021-04-19
 */
@FeignClient(value = "cyzh-smart-party",path = "/feign/meeting")
public interface IMeetingClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    MeetingVO detail(@SpringQueryMap Meeting meeting);

	/**
	 * 查询 会议列表表
	 */
	@GetMapping("/list")
    List<MeetingVO> list(@SpringQueryMap Meeting meeting);



	/**
	 * 新增 会议列表表
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody Meeting meeting);

	/**
	 * 修改 会议列表表
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody Meeting meeting);

	/**
	 * 新增或修改 会议列表表
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody Meeting meeting);


	/**
	 * 删除 会议列表表
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
