package org.springblade.community.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.community.entity.PlatformBills;
import org.springblade.community.vo.PlatformBillsVO;
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-09-14
 */
@FeignClient(value = "smart-community",path = "/feign/platformbills")
public interface IPlatformBillsClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    PlatformBillsVO detail(@SpringQueryMap PlatformBills platformBills);

	/**
	 * 查询 园区平台账单
	 */
	@GetMapping("/list")
    List<PlatformBillsVO> list(@SpringQueryMap PlatformBills platformBills);



	/**
	 * 新增 园区平台账单
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody PlatformBills platformBills);

	/**
	 * 修改 园区平台账单
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody PlatformBills platformBills);

	/**
	 * 新增或修改 园区平台账单
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody PlatformBills platformBills);


	/**
	 * 删除 园区平台账单
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
