package org.springblade.estate.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.estate.entity.AccessFacePushRecords;
import org.springblade.estate.vo.AccessFacePushRecordsVO;
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-28
 */
@FeignClient(value = "cyzh-estate",path = "/feign/accessfacepushrecords")
public interface IAccessFacePushRecordsClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    AccessFacePushRecordsVO detail(@SpringQueryMap AccessFacePushRecords accessFacePushRecords);

	/**
	 * 查询 出入记录
	 */
	@GetMapping("/list")
    List<AccessFacePushRecordsVO> list(@SpringQueryMap AccessFacePushRecords accessFacePushRecords);



	/**
	 * 新增 出入记录
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody AccessFacePushRecords accessFacePushRecords);

	/**
	 * 修改 出入记录
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody AccessFacePushRecords accessFacePushRecords);

	/**
	 * 新增或修改 出入记录
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody AccessFacePushRecords accessFacePushRecords);


	/**
	 * 删除 出入记录
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
